]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Avoid endless loop when the window is too narrow
[lyx.git] / src / Paragraph.cpp
index ae2e6def1ff6ebda935983c446d775ee5f96d796..734d18a81c6574388f6eeb2d71236a6b6880c865 100644 (file)
@@ -1426,7 +1426,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
                        icit->inset->validate(features);
                        if (layout_->needprotect &&
                            icit->inset->lyxCode() == FOOT_CODE)
-                               features.require("footmisc");
+                               features.require("NeedLyXFootnoteCode");
                }
        }
 
@@ -3269,8 +3269,6 @@ void Paragraph::forOutliner(docstring & os, size_t const maxlen,
                char_type const c = d->text_[i];
                if (isPrintable(c))
                        os += c;
-               else if (c == '\t' || c == '\n')
-                       os += ' ';
                else if (c == META_INSET)
                        getInset(i)->forOutliner(os, tmplen, false);
        }