From f650c242d0843e21f4bd02ccf45ab365a56c2552 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 24 Feb 2013 19:12:56 +0100 Subject: [PATCH] Found one more nested if to remove --- src/tex2lyx/text.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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") {