The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit f650c242d0843e21f4bd02ccf45ab365a56c2552
Author: Georg Baum <[email protected]>
Date:   Sun Feb 24 19:12:56 2013 +0100

    Found one more nested if to remove

diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index f9b850f..a123f9d 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") {

-----------------------------------------------------------------------

Summary of changes:
 src/tex2lyx/text.cpp |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to