From fc6643e4aa15359fa68196a5bed1b4b6edcc008a Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 3 Dec 2022 23:03:33 -0500 Subject: [PATCH] Fix bug #11853 --- src/insets/InsetNote.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.5