Since '\n' and '\t' are printable characters, the second clause

never triggered, and we output them anyway.
This commit is contained in:
Richard Heck 2015-12-12 15:29:25 -05:00
parent ca986bd33f
commit 1f8fd79c41
2 changed files with 5 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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