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:

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

Jens Krinke

Reply via email to