tex2lyx/text.cpp: fix other missing issues from r36947

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36955 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-12-20 01:12:35 +00:00
parent 3fa2875355
commit 2385086972

View File

@ -903,7 +903,7 @@ void parse_environment(Parser & p, ostream & os, bool outer,
// the two environments as one otherwise (bug 5716)
docstring const sep = from_ascii("--Separator--");
TeX2LyXDocClass const & textclass(parent_context.textclass);
if (LYX_FORMAT >= 273 && textclass.hasLayout(sep)) {
if (textclass.hasLayout(sep)) {
Context newcontext(parent_context);
newcontext.layout = &(textclass[sep]);
newcontext.check_layout(os);
@ -2432,13 +2432,13 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
skip_spaces_braces(p);
}
else if (LYX_FORMAT >= 307 && t.cs() == "slash") {
else if (t.cs() == "slash") {
context.check_layout(os);
os << "\\SpecialChar \\slash{}\n";
skip_spaces_braces(p);
}
else if (LYX_FORMAT >= 307 && t.cs() == "nobreakdash") {
else if (t.cs() == "nobreakdash") {
context.check_layout(os);
os << "\\SpecialChar \\nobreakdash\n";
}