From 975537172997069dc9a81679e1a3300dc2f7e9f9 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 2 Jan 2019 09:49:59 +0100 Subject: [PATCH] Fix conversion of math braces to html --- src/mathed/MathStream.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mathed/MathStream.cpp b/src/mathed/MathStream.cpp index b2d01cfb68..774e964a8d 100644 --- a/src/mathed/MathStream.cpp +++ b/src/mathed/MathStream.cpp @@ -708,6 +708,12 @@ docstring convertDelimToXMLEscape(docstring const & name) return from_ascii(">"); else return name; + } else if (name.size() == 2 && name[0] == '\\') { + char_type const c = name[1]; + if (c == '{') + return from_ascii("{"); + else if (c == '}') + return from_ascii("}"); } MathWordList const & words = mathedWordList(); MathWordList::const_iterator it = words.find(name);