LyX Ticket Tracker wrote:
 2) Press F8 to activate ChkTeX.
Thanks for highlighting this tool, I didn't know there was something like that.
 In 2.0.0svn the entire paragraph is selected, the Good the Bad and the
 Ugly. In LyX 1.6.x, only the line containing "Good" is selected. This bug
 makes it considerably harder to find the offending text when dealing with
 a long paragraph.

 Reverting change r31263 by tommaso fixes this bug, but I am not sure how
 important change 31263 is ("OutputParams.linelen now controls line-width
 also for LaTeX exports, additionally to plaintext ones").
Also applying the attached patch should fix it (simply setting linelen to the default value in lyxrc [instead of 0]) when invoking chktex.

If it works for you, I can commit the patch.

   T.
Index: src/Buffer.cpp
===================================================================
--- src/Buffer.cpp	(revisione 33612)
+++ src/Buffer.cpp	(copia locale)
@@ -1607,6 +1607,7 @@
 	OutputParams runparams(&params().encoding());
 	runparams.flavor = OutputParams::LATEX;
 	runparams.nice = false;
+	runparams.linelen = lyxrc.plaintext_linelen;
 	makeLaTeXFile(FileName(name), org_path, runparams);
 
 	TeXErrors terr;

Reply via email to