From: Richard Kimberly Heck Date: Sun, 4 Dec 2022 04:03:33 +0000 (-0500) Subject: Fix bug #11853 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fc6643e4aa15359fa68196a5bed1b4b6edcc008a;p=features.git Fix bug #11853 --- diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index 998c8cc242..a7a0dc16ab 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -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);