]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
* ListingsUi.ui: polish.
[lyx.git] / src / Paragraph.cpp
index 7c9780e1ae2874bb02af9723f03e24c83562e549..ba3ee8e0d8d16fbcf4642675b1ad1e5a0d4c1293 100644 (file)
@@ -279,6 +279,13 @@ Paragraph::Private::Private(Private const & p, Paragraph * owner,
 }
 
 
+void Paragraph::addChangesToToc(DocIterator const & cdit,
+       Buffer const & buf) const
+{
+       d->changes_.addToToc(cdit, buf);
+}
+
+
 bool Paragraph::isChanged(pos_type start, pos_type end) const
 {
        LASSERT(start >= 0 && start <= size(), /**/);
@@ -2389,7 +2396,7 @@ docstring Paragraph::asString(pos_type beg, pos_type end, int options) const
 
        for (pos_type i = beg; i < end; ++i) {
                char_type const c = d->text_[i];
-               if (isPrintable(c))
+               if (isPrintable(c) || c == '\t')
                        os.put(c);
                else if (c == META_INSET && options & AS_STR_INSETS)
                        getInset(i)->textString(os);