commit b9fc4bae44ca8f41b636101909ef0596bf2d4def
Author: Thibaut Cuvelier <tcuvel...@lyx.org>
Date:   Sun Oct 8 01:38:27 2023 +0200

    DocBook: fix formatting of TODOs.
    
    The lines were very long; this commit truncates them to 120 characters.
---
 src/output_docbook.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp
index c80a7cd..19f6de4 100644
--- a/src/output_docbook.cpp
+++ b/src/output_docbook.cpp
@@ -1300,7 +1300,8 @@ void docbookParagraphs(Text const &text,
                }
 
                // Close all sections before the bibliography.
-               // TODO: Only close all when the bibliography is at the end of 
the document? Or force to output the bibliography at the end of the document? 
Or don't care (as allowed by DocBook)?
+               // TODO: Only close all when the bibliography is at the end of 
the document? Or force to output the bibliography
+               // at the end of the document? Or don't care (as allowed by 
DocBook)?
                if (!par->insetList().empty()) {
                        Inset const *firstInset = par->getInset(0);
                        if (firstInset && (firstInset->lyxCode() == 
BIBITEM_CODE || firstInset->lyxCode() == BIBTEX_CODE)) {
@@ -1326,7 +1327,8 @@ void docbookParagraphs(Text const &text,
                // Generate the <info> tag if a section was just opened.
                // Some sections may require abstracts (mostly parts, in books: 
DocBookForceAbstractTag will not be NONE),
                // others can still have an abstract (it must be detected so 
that it can be output at the right place).
-               // TODO: docbookforceabstracttag is a bit contrived here, but 
it does the job. Having another field just for this would be cleaner, but 
that's just for <part> and <partintro>, so it's probably not worth the effort.
+               // TODO: docbookforceabstracttag is a bit contrived here, but 
it does the job. Having another field just for
+               // this would be cleaner, but that's just for <part> and 
<partintro>, so it's probably not worth the effort.
                if (isLayoutSectioning(style)) {
                        // This abstract may be found between the next 
paragraph and the next title.
                        pit_type cpit = 
std::distance(text.paragraphs().begin(), par);
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to