tex2lyx/text.cpp: support for \newline

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21922 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-12-02 17:38:38 +00:00
parent 1ac6b38ea5
commit 439dc6247e
2 changed files with 8 additions and 0 deletions

View File

@ -2186,6 +2186,12 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
}
}
else if (t.cs() == "newline") {
context.check_layout(os);
os << "\n\\" << t.cs() << "\n";
skip_braces(p); // eat {}
}
else if (t.cs() == "input" || t.cs() == "include"
|| t.cs() == "verbatiminput") {
string name = '\\' + t.cs();

View File

@ -78,6 +78,8 @@ What's new
- Placeholders have been moved from the miscellaneous to the spacings section
in the math toolbar.
- tex2lyx imports now also the LaTeX-command \newline
** Bug fixes:
*************