On Wed, Mar 3, 2010 at 11:38 AM, LyX Ticket Tracker <[email protected]> wrote: > #6574: ChkTeX selects entire paragraph, rather than just line where error > occurs. > Ticket URL: <http://www.lyx.org/trac/ticket/6574>
This regression from LyX 1.6.x can be fixed just by adding the line + runparams.linelen = lyxrc.plaintext_linelen; to Buffer::runChktex() This cannot break anything other than Chktex (and as the primary user of runChktex, I think I'd have noticed the breakage) Shall we commit the attached patch now? -- John C. McCabe-Dansted
Index: Buffer.cpp =================================================================== --- Buffer.cpp (revision 33612) +++ Buffer.cpp (working copy) @@ -1607,6 +1607,7 @@ OutputParams runparams(¶ms().encoding()); runparams.flavor = OutputParams::LATEX; runparams.nice = false; + runparams.linelen = lyxrc.plaintext_linelen; makeLaTeXFile(FileName(name), org_path, runparams); TeXErrors terr;
