]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_streamstr.C
Fix reading of math macros
[lyx.git] / src / mathed / math_streamstr.C
index 974a7913b8425d9e0ff922901b74f684638ca456..46e85dea73dd482c2e19d2ace9d369d40263b96f 100644 (file)
@@ -1,6 +1,5 @@
-
 #ifdef __GNUG__
-#pragma implementation 
+#pragma implementation
 #endif
 
 #include <config.h>
 
 WriteStream & operator<<(WriteStream & ws, string const & s)
 {
-       if (ws.pendingSpace()) {
-               ws.os() << ' ';
-               ws.pendingSpace(false);
-       }
-       ws.os() << s;
-       ws.addlines(int(lyx::count(s.begin(), s.end(), '\n')));
+       ws << s.c_str();
        return ws;
 }
 
@@ -37,6 +31,13 @@ MapleStream & operator<<(MapleStream & ms, string const & s)
 }
 
 
+MaximaStream & operator<<(MaximaStream & ms, string const & s)
+{
+       ms.os() << s;
+       return ms;
+}
+
+
 MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
 {
        ms.os() << s;