]> git.lyx.org Git - features.git/commitdiff
DocBook: in ERTs, recognise \oe.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 7 Feb 2022 00:02:19 +0000 (01:02 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 7 Feb 2022 00:02:19 +0000 (01:02 +0100)
src/insets/InsetERT.cpp

index 7c231b313ea15c22f3eda4a5d40a161a7b880d37..87abc632b8e510469b9e88a7886ba4b6e1a5abfc 100644 (file)
@@ -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 << "&#339;";
+       } else if (trim(os.str()) == from_ascii("\\OE") || trim(os.str()) == from_ascii("\\OE{}")) {
+           xs << "&#338;";
        } else {
         xs << XMLStream::ESCAPE_NONE << "<!-- ";
         xs << XMLStream::ESCAPE_COMMENTS << os.str();