]> git.lyx.org Git - features.git/commitdiff
tex2lyx: remove some superfluous code
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 6 Jul 2012 21:35:33 +0000 (23:35 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 6 Jul 2012 21:35:33 +0000 (23:35 +0200)
text.cpp: besides that eat_whitespace does nothing these calls would be wrong as whitespace is allowed as argument of the box commands

src/tex2lyx/text.cpp

index cebc6fbf4013b670b3d794e054d07d33e1ae508b..0d1a3d00e5b50763cc105932452784e912820b58 100644 (file)
@@ -3909,7 +3909,6 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                arg += p.getFullOpt();
                                eat_whitespace(p, os, context, false);
                                handle_ert(os, arg + '{', context);
-                               eat_whitespace(p, os, context, false);
                                parse_text(p, os, FLAG_ITEM, outer, context);
                                handle_ert(os, "}", context);
                        } else {
@@ -3922,7 +3921,6 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                else {
                                        eat_whitespace(p, os, context, false);
                                        handle_ert(os, "\\framebox{", context);
-                                       eat_whitespace(p, os, context, false);
                                        parse_text(p, os, FLAG_ITEM, outer, context);
                                        handle_ert(os, "}", context);
                                }
@@ -3939,7 +3937,6 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                arg += p.getFullOpt();
                                eat_whitespace(p, os, context, false);
                                handle_ert(os, arg + '{', context);
-                               eat_whitespace(p, os, context, false);
                                parse_text(p, os, FLAG_ITEM, outer, context);
                                handle_ert(os, "}", context);
                        } else