commit 1f8fd79c419f5c26eb0d7c78f46d4d50f5f310a1
Author: Richard Heck <[email protected]>
Date: Sat Dec 12 15:29:25 2015 -0500
Since '\n' and '\t' are printable characters, the second clause
never triggered, and we output them anyway.
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 6ba1222..67e98c9 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -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;
}
}
diff --git a/status.21x b/status.21x
index 2461d73..afb9822 100644
--- a/status.21x
+++ b/status.21x
@@ -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