mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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,
|
int InsetSpecialChar::latex(odocstream & os,
|
||||||
OutputParams const &) const
|
OutputParams const & rp) const
|
||||||
{
|
{
|
||||||
switch (kind_) {
|
switch (kind_) {
|
||||||
case HYPHENATION:
|
case HYPHENATION:
|
||||||
@ -226,6 +226,8 @@ int InsetSpecialChar::latex(odocstream & os,
|
|||||||
os << "\\slash{}";
|
os << "\\slash{}";
|
||||||
break;
|
break;
|
||||||
case NOBREAKDASH:
|
case NOBREAKDASH:
|
||||||
|
if (rp.moving_arg)
|
||||||
|
os << "\\protect";
|
||||||
os << "\\nobreakdash-";
|
os << "\\nobreakdash-";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user