DocBook: fix handling of footnotes.

A <para> was missing inside starting at 441c6a93.
This commit is contained in:
Thibaut Cuvelier 2021-05-24 23:36:23 +02:00
parent 33b7088719
commit 39a9e370c7
3 changed files with 6 additions and 1 deletions

View File

@ -366,6 +366,9 @@ public:
/// Are we already in a paragraph?
bool docbook_in_par = false;
/// Is this element's allowMultiPar useable or not?
bool docbook_consider_allow_multi_par = true;
/// Does the present context even permit paragraphs?
bool docbook_make_pars = true;

View File

@ -127,6 +127,8 @@ void InsetFoot::docbook(XMLStream & xs, OutputParams const & runparams) const
OutputParams rp = runparams;
rp.docbook_force_pars = true;
rp.docbook_in_par = false;
rp.docbook_consider_allow_multi_par = false;
rp.docbook_make_pars = true;
InsetText::docbook(xs, rp);
}

View File

@ -711,7 +711,7 @@ void InsetText::docbook(XMLStream & xs, OutputParams const & rp, XHTMLOptions op
// No need for labels that are generated from counters. They should be handled by the external DocBook processor.
// With respect to XHTML, paragraphs are still allowed here.
if (!allowMultiPar())
if (runparams.docbook_consider_allow_multi_par && !allowMultiPar())
runparams.docbook_make_pars = false;
if (il.isPassThru())
runparams.pass_thru = true;