[l2h] Still whitespace-error in comments

Jens Krinke Jens Krinke <krinke@fmi.uni-passau.de>
Tue, 20 Apr 1999 09:44:43 +0200 (MET DST)


--r3bsTmVd+3
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

Hi,

there is still (or again) an error in the handling of comments:  In
LaTeX, everything after a `%' including the `%' itself and the
whitespace at the beginning of the next line is _completely ignored_.
Right now, L2H replaces that with a linebreak.  This results in
spurious whitespace during bibliography processing, as bibtex inserts
comments to break up overlong lines.

Please apply the following patch:


--r3bsTmVd+3
Content-Type: text/plain; charset=iso-8859-1
Content-Description: comments patch
Content-Disposition: inline;
	filename="latex2html.patch"
Content-Transfer-Encoding: 7bit

--- latex2html~	Mon Apr 19 16:36:36 1999
+++ latex2html	Tue Apr 20 09:13:33 1999
@@ -1653,7 +1653,11 @@
 #
     s/\\%/\002/g;
 #    s/(%.*\n[ \t]*)//g;
-    s/(%[^\n]*\n)[ \t]*/$comment_mark\n/g;
+
+    #JKR: the comments include the linebreak and the following
+    #whitespace and have to be removed completely - it is not correct
+    #to replace it with whitespace!
+    s/(%[^\n]*\n)[ \t]*/$comment_mark/g;
     s/\002/\\%/g;
 
     local($tmp1,$tmp2);

--r3bsTmVd+3
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit


Jens Krinke
--r3bsTmVd+3--