]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_streamstr.C
small up/down tweaking
[lyx.git] / src / mathed / math_streamstr.C
index b499e21c13cf684a00e9589d216c229c851e6255..46e85dea73dd482c2e19d2ace9d369d40263b96f 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <config.h>
 
 #include "math_streamstr.h"
@@ -8,8 +12,7 @@
 
 WriteStream & operator<<(WriteStream & ws, string const & s)
 {
-       ws.os() << s;
-       ws.addlines(int(lyx::count(s.begin(), s.end(), '\n')));
+       ws << s.c_str();
        return ws;
 }
 
@@ -28,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;