]> git.lyx.org Git - features.git/commitdiff
Fix bug #11853
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 4 Dec 2022 04:03:33 +0000 (23:03 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 4 Dec 2022 04:03:33 +0000 (23:03 -0500)
src/insets/InsetNote.cpp

index 998c8cc242d07c3e4a292c14db80ab45054c3419..a7a0dc16abf0fad7856075ad085271d6f600d724 100644 (file)
@@ -28,6 +28,7 @@
 #include "Lexer.h"
 #include "LyXRC.h"
 #include "output_docbook.h"
+#include "output_latex.h"
 
 #include "support/debug.h"
 #include "support/docstream.h"
@@ -222,6 +223,12 @@ void InsetNote::latex(otexstream & os, OutputParams const & runparams_in) const
 
        OutputParams runparams(runparams_in);
        if (params_.type == InsetNoteParams::Comment) {
+               if (runparams_in.inComment) {
+                       // Nested comments should just output the contents.
+                       latexParagraphs(buffer(), text(), os, runparams);
+                       return;
+               }
+
                runparams.inComment = true;
                // Ignore files that are exported inside a comment
                runparams.exportdata.reset(new ExportData);