diff --git a/src/OutputParams.h b/src/OutputParams.h index 6b25658ee3..4d4cae6cae 100644 --- a/src/OutputParams.h +++ b/src/OutputParams.h @@ -135,7 +135,7 @@ public: */ mutable std::string index_command; - /** Line length to use with plaintext export. + /** Line length to use with plaintext or LaTeX export. */ size_type linelen; diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 61ed9bb022..decef1348d 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -593,8 +593,8 @@ bool Paragraph::Private::simpleTeXBlanks(OutputParams const & runparams, } } - 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()))