fix translation of \nobreakdash in tex2lyx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37050 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2010-12-30 20:38:47 +00:00
parent 90f795a29e
commit d6ccb86f15
2 changed files with 4 additions and 3 deletions

View File

@ -285,7 +285,7 @@ or by a defined page break \pagebreak[4]
Then one has those macros with a long name for a short meaning, like
\textasciitilde, \textasciicircum{} or \textbackslash{}, \slash{},
\nobreakdash and the characters
\nobreakdash- and the characters
that LaTeX wants to espace because they are active, like \_\&\#\$\{\}\%.
And what about special characters like hyphe\-nation mark,

View File

@ -2462,9 +2462,10 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
skip_spaces_braces(p);
}
else if (t.cs() == "nobreakdash") {
else if (t.cs() == "nobreakdash" && p.next_token().asInput() == "-") {
context.check_layout(os);
os << "\\SpecialChar \\nobreakdash\n";
os << "\\SpecialChar \\nobreakdash-\n";
p.get_token();
}
else if (t.cs() == "textquotedbl") {