]> git.lyx.org Git - features.git/commitdiff
tex2lyx/text.cpp: \lang is already handled by parse_text
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 22 Jun 2012 02:41:08 +0000 (04:41 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 22 Jun 2012 02:41:08 +0000 (04:41 +0200)
src/tex2lyx/text.cpp

index 92934cce94bdc3cdc879633697de16fda0885713..3fe7dbd76a21258974c1c09b70f340f3c0d30b84 100644 (file)
@@ -1257,10 +1257,9 @@ void parse_environment(Parser & p, ostream & os, bool outer,
                        parent_context.check_end_layout(os);
                        parent_context.new_paragraph(os);
                }
-               // save the language for the case that a
-               // \textLANGUAGE is used
+               // save the language in the context so that it is
+               // handled by parse_text
                parent_context.font.language = polyglossia2lyx(name);
-               os << "\n\\lang " << parent_context.font.language << "\n";
                parse_text(p, os, FLAG_END, outer, parent_context);
                // Just in case the environment is empty
                parent_context.extra_stuff.erase();