mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* InsetSpecialChar.cpp:
- \protect nobreakdash if needed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26861 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d45ca67d1d
commit
86eeea7566
@ -204,7 +204,7 @@ void InsetSpecialChar::read(Lexer & lex)
|
||||
|
||||
|
||||
int InsetSpecialChar::latex(odocstream & os,
|
||||
OutputParams const &) const
|
||||
OutputParams const & rp) const
|
||||
{
|
||||
switch (kind_) {
|
||||
case HYPHENATION:
|
||||
@ -226,6 +226,8 @@ int InsetSpecialChar::latex(odocstream & os,
|
||||
os << "\\slash{}";
|
||||
break;
|
||||
case NOBREAKDASH:
|
||||
if (rp.moving_arg)
|
||||
os << "\\protect";
|
||||
os << "\\nobreakdash-";
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user