]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.C
"Inter-word Space"
[lyx.git] / src / sgml.C
index 52ada720fc27fbdc13717fae7a31c155ad73cc27..9104cda839cb7b3f2eb7ca913a951f7e7f3b7dbf 100644 (file)
@@ -26,11 +26,6 @@ pair<bool, string> escapeChar(char c)
        string str;
 
        switch (c) {
-       case Paragraph::META_HFILL:
-               break;
-       case Paragraph::META_NEWLINE:
-               str = '\n';
-               break;
        case ' ':
                return make_pair(true, string(" "));
                break;
@@ -89,8 +84,8 @@ int openTag(ostream & os, Paragraph::depth_type depth,
 {
        if (!latexname.empty() && latexname != "!-- --") {
                if (!mixcont)
-                       os << string(" ", depth);
-               os << "<" << latexname << ">";
+                       os << string(depth, ' ');
+               os << '<' << latexname << '>';
        }
 
        if (!mixcont)
@@ -105,8 +100,8 @@ int closeTag(ostream & os, Paragraph::depth_type depth,
 {
        if (!latexname.empty() && latexname != "!-- --") {
                if (!mixcont)
-                       os << endl << string(" ", depth);
-               os << "</" << latexname << ">";
+                       os << endl << string(depth, ' ');
+               os << "</" << latexname << '>';
        }
 
        if (!mixcont)