mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
3ccb9d8af9
commit
4b449892e1
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user