[LyX/master] DocBook: in ERTs, recognise \oe.

Thibaut Cuvelier tcuvelier at lyx.org
Mon Feb 7 03:17:35 UTC 2022


commit cd82b125d1d9b52f16ea13c6d3bc9cae3022cec7
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Mon Feb 7 01:02:19 2022 +0100

    DocBook: in ERTs, recognise \oe.
---
 src/insets/InsetERT.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetERT.cpp b/src/insets/InsetERT.cpp
index 7c231b3..87abc63 100644
--- a/src/insets/InsetERT.cpp
+++ b/src/insets/InsetERT.cpp
@@ -142,6 +142,10 @@ void InsetERT::docbook(XMLStream & xs, OutputParams const & runparams) const
 	    xs << "LaTeX2&#x03b5;";
 	} else if (trim(os.str()) == from_ascii("\\LyX") || trim(os.str()) == from_ascii("\\LyX{}")) {
 	    xs << "LyX";
+	} else if (trim(os.str()) == from_ascii("\\oe") || trim(os.str()) == from_ascii("\\oe{}")) {
+	    xs << "œ";
+	} else if (trim(os.str()) == from_ascii("\\OE") || trim(os.str()) == from_ascii("\\OE{}")) {
+	    xs << "Œ";
 	} else {
         xs << XMLStream::ESCAPE_NONE << "<!-- ";
         xs << XMLStream::ESCAPE_COMMENTS << os.str();


More information about the lyx-cvs mailing list