From 4b449892e17723c7e36bbe008d1bd08824bfb166 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 15 Feb 2007 20:49:29 +0000 Subject: [PATCH] Fix import of \={\i} git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17203 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/text.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/tex2lyx/text.C b/src/tex2lyx/text.C index 2f7740686f..d28fdea83b 100644 --- a/src/tex2lyx/text.C +++ b/src/tex2lyx/text.C @@ -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"; } -- 2.39.5