Fix import of \={\i}

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17203 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-02-15 20:49:29 +00:00
parent 3ccb9d8af9
commit 4b449892e1

View 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";
}