]> git.lyx.org Git - features.git/commitdiff
Fix XHTML output on systems where char_type is not typedef'd to wchar_t.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 14 Jan 2010 13:29:13 +0000 (13:29 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 14 Jan 2010 13:29:13 +0000 (13:29 +0000)
See docstream.h for the explanation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33027 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathChar.cpp
src/mathed/MathStream.cpp

index e1d64ec866c2c94dc25a1c68825f48bb6c85413d..4d5fc2112031dadbaa92274c6423b77d717cdd49 100644 (file)
@@ -182,7 +182,7 @@ void InsetMathChar::mathmlize(MathStream & ms) const
        
        if (ms.inText()) {
                if (entity.empty())
-                       ms << char_type(char_);
+                       ms.os().put(char_);
                else 
                        ms << from_ascii(entity);
                return;
index c9f7ef54a50df772ff4164f936c548ed8a04d765..793da37ec57949f947cac5216d59b450e77464f5 100644 (file)
@@ -306,7 +306,7 @@ MathStream & operator<<(MathStream & ms, char c)
 
 MathStream & operator<<(MathStream & ms, char_type c)
 {
-       ms.os() << c;
+       ms.os().put(c);
        return ms;
 }