commit dfb1ad85fa4153af88258c5814ba03c05322204b Author: Thibaut Cuvelier <tcuvel...@lyx.org> Date: Fri Nov 27 17:59:35 2020 +0100
amend bd9dce374976ef8d8f9be0140217c2d92b950c66 Fix warning, add a comment while I'm there --- src/output_docbook.cpp | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp index 519d70e..8f313e1 100644 --- a/src/output_docbook.cpp +++ b/src/output_docbook.cpp @@ -1084,20 +1084,16 @@ void docbookParagraphs(Text const &text, bpit = info.epit; // Then, iterate through the paragraphs of this document. - bool currentlyInAppendix = false; - auto par = text.paragraphs().iterator_at(bpit); auto end = text.paragraphs().iterator_at(epit); while (par != end) { - OutputParams ourparams = runparams; - - if (par->params().startOfAppendix()) - currentlyInAppendix = true; + // Skip paragraphs not producing any output. if (hasOnlyNotes(*par)) { ++par; continue; } + OutputParams ourparams = runparams; Layout const &style = par->layout(); // Think about adding <section> and/or </section>s. -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs