Hello,

anyone against this patch ? It uses OutputParams.linelen to control newlines also on LaTeX exports, additionally to plaintext ones.

   T.
Index: src/OutputParams.h
===================================================================
--- src/OutputParams.h	(revisione 31229)
+++ src/OutputParams.h	(copia locale)
@@ -135,7 +135,7 @@
 	*/
 	mutable std::string index_command;
 
-	/** Line length to use with plaintext export.
+	/** Line length to use with plaintext or LaTeX export.
 	*/
 	size_type linelen;
 
Index: src/Paragraph.cpp
===================================================================
--- src/Paragraph.cpp	(revisione 31229)
+++ src/Paragraph.cpp	(copia locale)
@@ -593,8 +593,8 @@
 		}
 	}
 
-	if (lyxrc.plaintext_linelen > 0
-	    && column > lyxrc.plaintext_linelen
+	if (runparams.linelen > 0
+	    && column > runparams.linelen
 	    && i
 	    && text_[i - 1] != ' '
 	    && (i + 1 < int(text_.size()))

Reply via email to