From: Thibaut Cuvelier Date: Mon, 26 Dec 2022 01:44:57 +0000 (+0100) Subject: Add comments about variable usage. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e3eddd4cf9f63b365846ceba162a6f2b7505051b;p=features.git Add comments about variable usage. --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 6baac81325..9c3b0dce35 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -3528,9 +3528,12 @@ std::tuple, std::vector, std::vector prependedParagraphs; - std::vector generatedParagraphs; - std::vector appendedParagraphs; + // Return values: segregation of the content of this paragraph. + std::vector prependedParagraphs; // Anything that must be output before the main tag of this paragraph. + std::vector generatedParagraphs; // The main content of the paragraph. + std::vector appendedParagraphs; // Anything that must be output after the main tag of this paragraph. + + // Internal string stream to store the output before being added to one of the previous lists. odocstringstream os; // If there is an argument that must be output before the main tag, do it before handling the rest of the paragraph. @@ -3560,13 +3563,15 @@ std::tuple, std::vector, std::vector delayedChars; // When a font tag ends with a space, output it after the closing font tag. // This requires to store delayed characters at some point. - DocBookFontState fs; // Track whether we have opened font tags + // Track whether we have opened font tags + DocBookFontState fs; DocBookFontState old_fs = fs; Layout const & style = *d->layout_; FontInfo font_old = style.labeltype == LABEL_MANUAL ? style.labelfont : style.font; string const default_family = buf.masterBuffer()->params().fonts_default_family; + // Conversion of the font opening/closing into DocBook tags. vector tagsToOpen; vector tagsToClose;