OutputParams.linelen now controls line-width also for LaTeX exports, additionally to plaintext ones.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31263 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2009-09-02 23:46:04 +00:00
parent 026f6a454a
commit 14c27bcea6
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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()))