]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.C
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / output_plaintext.C
index 0a6d16eddc20b8b7738dfef77fed4047fee88dad..4ffc0c655382b1ba8f151e127caa41bd32149591 100644 (file)
@@ -127,7 +127,7 @@ void writePlaintextParagraph(Buffer const & buf,
 
        /* what about the alignment */
 
-       // runparams.linelen <= 0 is special and means we don't have paragraph breaks
+       // runparams.linelen == 0 is special and means we don't have paragraph breaks
 
        string::size_type currlinelen = 0;
 
@@ -199,11 +199,9 @@ void writePlaintextParagraph(Buffer const & buf,
                switch (c) {
                case Paragraph::META_INSET: {
                        InsetBase const * inset = par.getInset(i);
-                       if (runparams.linelen > 0) {
-                               os << word;
-                               currlinelen += word.length();
-                               word.erase();
-                       }
+                       os << word;
+                       currlinelen += word.length();
+                       word.erase();
                        OutputParams rp = runparams;
                        rp.depth = par.params().depth();
                        if (inset->plaintext(buf, os, rp)) {