]> git.lyx.org Git - lyx.git/commitdiff
Fix conversion of math braces to html
authorEnrico Forestieri <forenr@lyx.org>
Wed, 2 Jan 2019 08:49:59 +0000 (09:49 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 2 Jan 2019 08:49:59 +0000 (09:49 +0100)
src/mathed/MathStream.cpp

index b2d01cfb688612637c0f27f16abad0cd2355353c..774e964a8dfb94caa968a1e7f23193aa12f9c4be 100644 (file)
@@ -708,6 +708,12 @@ docstring convertDelimToXMLEscape(docstring const & name)
                        return from_ascii("&gt;");
                else
                        return name;
+       } else if (name.size() == 2 && name[0] == '\\') {
+               char_type const c = name[1];
+               if (c == '{')
+                       return from_ascii("&#123;");
+               else if (c == '}')
+                       return from_ascii("&#125;");
        }
        MathWordList const & words = mathedWordList();
        MathWordList::const_iterator it = words.find(name);