]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.C
Minimal fix needed to give Qt a label dialog again.
[lyx.git] / src / sgml.C
index 52ada720fc27fbdc13717fae7a31c155ad73cc27..435d71cc13cf8a57a94337d87ef17c35307d1c36 100644 (file)
@@ -89,8 +89,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 +105,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)