]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.C
fix reading the author field.
[lyx.git] / src / Spacing.C
index 6bb0170d60eca740c7c0a37af9cb2ef81d04efb5..695398b6ff8bae92203f6b735b6de9e336fb82b3 100644 (file)
 
 #include <config.h>
 
-#include "Lsstream.h"
 #include "Spacing.h"
-#include "LString.h"
+
+#include <sstream>
+#include <string>
 
 using std::ios;
+using std::istringstream;
 using std::ostream;
+using std::ostringstream;
+using std::string;
+
 
 string const Spacing::spacing_string[]
        = {"single", "onehalf", "double", "other"};
@@ -67,9 +72,9 @@ void Spacing::writeFile(ostream & os, bool para) const
                os.setf(ios::showpoint|ios::fixed);
                os.precision(2);
                os << cmd << spacing_string[getSpace()]
-                  << ' ' << getValue() << " \n";
+                  << ' ' << getValue() << "\n";
        } else {
-               os << cmd << spacing_string[getSpace()] << " \n";
+               os << cmd << spacing_string[getSpace()] << "\n";
        }
 }
 
@@ -89,7 +94,7 @@ string const Spacing::writeEnvirBegin() const
                ostringstream ost;
                ost << "\\begin{spacing}{"
                    << getValue() << '}';
-               return STRCONV(ost.str());
+               return ost.str();
        }
        }
        return string();