diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 7ba05f6180..f41002b932 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -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") {