[LyX/master] DocBook: fix handling of footnotes.
Thibaut Cuvelier
tcuvelier at lyx.org
Mon May 24 21:25:06 UTC 2021
commit 39a9e370c71562c9b42690262698c1fc87c46b56
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Mon May 24 23:36:23 2021 +0200
DocBook: fix handling of footnotes.
A <para> was missing inside starting at 441c6a93.
---
src/OutputParams.h | 3 +++
src/insets/InsetFoot.cpp | 2 ++
src/insets/InsetText.cpp | 2 +-
3 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/OutputParams.h b/src/OutputParams.h
index 48ad61e..2191a83 100644
--- a/src/OutputParams.h
+++ b/src/OutputParams.h
@@ -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;
diff --git a/src/insets/InsetFoot.cpp b/src/insets/InsetFoot.cpp
index eebbeb4..6de5e13 100644
--- a/src/insets/InsetFoot.cpp
+++ b/src/insets/InsetFoot.cpp
@@ -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);
}
diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index 819c87d..95d55b7 100644
--- a/src/insets/InsetText.cpp
+++ b/src/insets/InsetText.cpp
@@ -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;
More information about the lyx-cvs
mailing list