mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Since '\n' and '\t' are printable characters, the second clause
never triggered, and we output them anyway.
This commit is contained in:
parent
ca986bd33f
commit
1f8fd79c41
@ -3388,12 +3388,12 @@ void Paragraph::forToc(docstring & os, size_t maxlen) const
|
||||
if (isDeleted(i))
|
||||
continue;
|
||||
char_type const c = d->text_[i];
|
||||
if (isPrintable(c))
|
||||
os += c;
|
||||
else if (c == '\t' || c == '\n')
|
||||
if (c == '\t' || c == '\n')
|
||||
os += ' ';
|
||||
else if (c == META_INSET)
|
||||
getInset(i)->forToc(os, maxlen);
|
||||
else if (isPrintable(c))
|
||||
os += c;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,6 +122,8 @@ What's new
|
||||
- Allow to insert program listings to footnotes and margin notes (fixes bug
|
||||
9785, but reintroduces bug 9321).
|
||||
|
||||
- Do not output returns and tabs in outliner.
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user