[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] sphinx: qapidoc: Wrap "If" section body in a paragraph n
From: |
Peter Maydell |
Subject: |
Re: [PATCH 1/1] sphinx: qapidoc: Wrap "If" section body in a paragraph node |
Date: |
Tue, 6 Apr 2021 15:08:33 +0000 |
On Tue, 6 Apr 2021 at 15:19, John Snow <jsnow@redhat.com> wrote:
>
> These sections need to be wrapped in a block-level element, such as
> Paragraph in order for them to be rendered into Texinfo correctly.
>
> Before (e.g.):
>
> <section ids="qapidoc-713">
> <title>If</title>
> <literal>defined(CONFIG_REPLICATION)</literal>
> </section>
>
> became:
>
> .SS If
> \fBdefined(CONFIG_REPLICATION)\fP.SS \fBBlockdevOptionsReplication\fP
> (Object)
> ...
>
>
> After:
>
> <section ids="qapidoc-713">
> <title>If</title>
> <paragraph>
> <literal>defined(CONFIG_REPLICATION)</literal>
> </paragraph>
> </section>
>
> becomes:
>
> .SS If
> .sp
> \fBdefined(CONFIG_REPLICATION)\fP
> .SS \fBBlockdevOptionsReplication\fP (Object)
> ...
>
>
> Reported-by: Markus Armbruster <armbru@redhat.com>
> Tested-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
It's a shame Sphinx doesn't diagnose this kind of mis-constructed
document tree.
thanks
-- PMM