]> git.lyx.org Git - features.git/commitdiff
Fix import of \={\i}
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 15 Feb 2007 20:49:29 +0000 (20:49 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 15 Feb 2007 20:49:29 +0000 (20:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17203 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.C

index 2f7740686faf04eea94d3693aee58b084fdeb0f4..d28fdea83bc4c58cec6b3edf4510df10cff40df2 100644 (file)
@@ -2100,9 +2100,16 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                         || t.cs() == "'" || t.cs() == "`"
                         || t.cs() == "~" || t.cs() == "." || t.cs() == "=") {
                        // we need the trim as the LyX parser chokes on such spaces
+                       // The argument of InsetLatexAccent is parsed as a
+                       // subset of LaTeX, so don't parse anything here,
+                       // but use the raw argument.
+                       // Otherwise we would convert \~{\i} wrongly.
+                       // This will of course not translate \~{\ss} to \~{ß},
+                       // but that does at least compile and does only look
+                       // strange on screen.
                        context.check_layout(os);
                        os << "\\i \\" << t.cs() << "{"
-                          << trim(parse_text_snippet(p, FLAG_ITEM, outer, context), " ")
+                          << trim(p.verbatim_item(), " ")
                           << "}\n";
                }