mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
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:
parent
90f795a29e
commit
d6ccb86f15
@ -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,
|
||||
|
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user