]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.cpp
make frontend::Application a bit slimmer
[lyx.git] / src / sgml.cpp
index 928e0eb09ee8fd1b621039fc1a65299f4d8d77b1..6568a35bcd4ae172661339885e9db06a23b62bcb 100644 (file)
@@ -20,6 +20,7 @@
 #include "OutputParams.h"
 #include "Paragraph.h"
 #include "Text.h"
+#include "TextClass.h"
 
 #include "support/convert.h"
 #include "support/docstream.h"
@@ -212,7 +213,7 @@ void sgml::openTag(Buffer const & buf, odocstream & os,
        string id = par.getID(buf, runparams);
 
        string attribute;
-       if(!id.empty()) {
+       if (!id.empty()) {
                if (param.find('#') != string::npos) {
                        string::size_type pos = param.find("id=<");
                        string::size_type end = param.find(">");
@@ -223,7 +224,7 @@ void sgml::openTag(Buffer const & buf, odocstream & os,
        } else {
                if (param.find('#') != string::npos) {
                        // FIXME UNICODE
-                       if(!style->counter.empty())
+                       if (!style->counter.empty())
                                counters.step(style->counter);
                        else
                                counters.step(from_ascii(name));