// 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);
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";
}
}
}
- else if (t.cs() == "newline") {
+ else if (t.cs() == "newline"
+ || t.cs() == "linebreak") {
context.check_layout(os);
os << "\n\\" << t.cs() << "\n";
skip_spaces_braces(p);
}
else if (t.cs() == "newpage" ||
+ t.cs() == "pagebreak" ||
t.cs() == "clearpage" ||
t.cs() == "cleardoublepage") {
context.check_layout(os);