[LyX/master] Fix bug #11853
Richard Kimberly Heck
rikiheck at lyx.org
Sun Dec 4 03:43:37 UTC 2022
commit fc6643e4aa15359fa68196a5bed1b4b6edcc008a
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Sat Dec 3 23:03:33 2022 -0500
Fix bug #11853
---
src/insets/InsetNote.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp
index 998c8cc..a7a0dc1 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);
More information about the lyx-cvs
mailing list