]> git.lyx.org Git - features.git/blobdiff - src/paragraph.C
The Paste Recent patch
[features.git] / src / paragraph.C
index ceb72f684731ee8b78698c20d3b4dc9481bace3b..fbedfeedc9ebcf65a828d1212cc7926d429e9d2a 100644 (file)
@@ -1192,6 +1192,7 @@ bool Paragraph::isMultiLingual(BufferParams const & bparams)
 // Used for building the table of contents
 string const Paragraph::asString(Buffer const * buffer, bool label) const
 {
+#if 0
        string s;
        if (label && !params().labelString().empty())
                s += params().labelString() + ' ';
@@ -1209,6 +1210,11 @@ string const Paragraph::asString(Buffer const * buffer, bool label) const
        }
 
        return s;
+#else
+       // This should really be done by the caller and not here.
+       string ret(asString(buffer, 0, size(), label));
+       return subst(ret, '\n', ' ');
+#endif
 }