do not create invalid .lyx files when importing \i{}, \j{}, \l{} or \L{}.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16253 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-12-12 14:36:52 +00:00
parent 02fe5e67b8
commit 995d1337bb

View File

@ -2102,7 +2102,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
else if (t.cs() == "i" || t.cs() == "j" || t.cs() == "l" || else if (t.cs() == "i" || t.cs() == "j" || t.cs() == "l" ||
t.cs() == "L") { t.cs() == "L") {
context.check_layout(os); context.check_layout(os);
os << "\\" << t.cs() << ' '; os << "\\i \\" << t.cs() << "{}\n";
skip_braces(p); // eat {} skip_braces(p); // eat {}
} }