]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathStream.cpp
de.po
[lyx.git] / src / mathed / MathStream.cpp
index cf3fb51f1f0ba484be79ef9dc7567570b20c3afd..774e964a8dfb94caa968a1e7f23193aa12f9c4be 100644 (file)
@@ -295,7 +295,7 @@ void MathStream::defer(string const & s)
 
 
 docstring MathStream::deferred() const
-{ 
+{
        return deferred_.str();
 }
 
@@ -385,7 +385,7 @@ void HtmlStream::defer(string const & s)
 
 
 docstring HtmlStream::deferred() const
-{ 
+{
        return deferred_.str();
 }
 
@@ -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);