diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 90c97d03a3..3813a36bf6 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -462,9 +462,9 @@ TextClass const parse_preamble(Parser & p, ostream & os, string const & forcecla } else if (t.cs() == "newcommand" - || t.cs() == "renewcommand" - || t.cs() == "providecommand" - || t.cs() == "newlyxcommand") { + || t.cs() == "renewcommand" + || t.cs() == "providecommand" + || t.cs() == "newlyxcommand") { bool star = false; if (p.next_token().character() == '*') { p.get_token(); diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 390e445179..fbc89d3f0b 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2380,9 +2380,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, } else if (t.cs() == "newcommand" || - t.cs() == "providecommand" || - t.cs() == "renewcommand" || - t.cs() == "newlyxcommand") { + t.cs() == "providecommand" || + t.cs() == "renewcommand" || + t.cs() == "newlyxcommand") { // these could be handled by parse_command(), but // we need to call add_known_command() here. string name = t.asInput();