]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.C
activate the new InsetHFill,
[lyx.git] / src / sgml.C
index 52ada720fc27fbdc13717fae7a31c155ad73cc27..e8b6f825f0144cba388a67c2a2b5bdc733eef0e7 100644 (file)
@@ -26,8 +26,6 @@ pair<bool, string> escapeChar(char c)
        string str;
 
        switch (c) {
-       case Paragraph::META_HFILL:
-               break;
        case Paragraph::META_NEWLINE:
                str = '\n';
                break;
@@ -89,8 +87,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 +103,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)