]> git.lyx.org Git - features.git/commitdiff
Found one more nested if to remove
authorGeorg Baum <baum@lyx.org>
Sun, 24 Feb 2013 18:12:56 +0000 (19:12 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 24 Feb 2013 18:12:56 +0000 (19:12 +0100)
src/tex2lyx/text.cpp

index f9b850f7adaa1aaed8df731e20f310b35ea58a7d..a123f9d0388c5452d868c75fb91fa0519fdf6f3c 100644 (file)
@@ -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") {