commit cd82b125d1d9b52f16ea13c6d3bc9cae3022cec7
Author: Thibaut Cuvelier <[email protected]>
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 << "&#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();
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to