]> git.lyx.org Git - features.git/commitdiff
tex2lyx/preamble.cpp: cosmetics
authorUwe Stöhr <uwestoehr@web.de>
Thu, 15 May 2008 21:09:53 +0000 (21:09 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 15 May 2008 21:09:53 +0000 (21:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24790 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index 7ba05f6180cf88e1728f22250a244338586169d7..f41002b9321925fc5464ca6a9dfa99373636d7e2 100644 (file)
@@ -83,7 +83,7 @@ const char * const known_typewriter_fonts[] = { "beramono", "cmtl", "cmtt",
 "courier", "lmtt", "luximono", "fourier", "lmodern", "mathpazo", "mathptmx",
 "newcent", 0};
 
-// some ugly stuff
+// default settings
 ostringstream h_preamble;
 string h_textclass               = "article";
 string h_options                 = string();
@@ -669,13 +669,13 @@ void parse_preamble(Parser & p, ostream & os,
                                h_preamble << "\\setlength{" << name << "}{" << content << "}";
                }
 
-               else if (t.cs() =="onehalfspacing")
+               else if (t.cs() == "onehalfspacing")
                        h_spacing = "onehalf";
 
-               else if (t.cs() =="doublespacing")
+               else if (t.cs() == "doublespacing")
                        h_spacing = "double";
 
-               else if (t.cs() =="setstretch")
+               else if (t.cs() == "setstretch")
                        h_spacing = "other " + p.verbatim_item();
 
                else if (t.cs() == "begin") {