From: Georg Baum Date: Sun, 24 Feb 2013 18:12:56 +0000 (+0100) Subject: Found one more nested if to remove X-Git-Tag: 2.1.0beta1~603 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f650c242d0843e21f4bd02ccf45ab365a56c2552;p=features.git Found one more nested if to remove --- diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index f9b850f7ad..a123f9d038 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -3806,16 +3806,14 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, skip_braces(p); } - else if (t.cs() == "-") { - context.check_layout(os); - os << "\\SpecialChar \\-\n"; - } - else if (t.cs() == "_" || t.cs() == "&" || t.cs() == "#" || t.cs() == "$" || t.cs() == "{" || t.cs() == "}" - || t.cs() == "%") { + || t.cs() == "%" || t.cs() == "-") { context.check_layout(os); - os << t.cs(); + if (t.cs() == "-") + os << "\\SpecialChar \\-\n"; + else + os << t.cs(); } else if (t.cs() == "char") {