[l2h] expand "}%\n" to "}%%\n\n" in images.tex

Shigeharu TAKENO shige@iee.niit.ac.jp
Thu, 22 Aug 2002 19:39:38 +0900 (JST)


shige 08/22 2002
----------------

latex2html (any recent version) seems to expand "}%\n" in latex 
file to "}%%\n\n" in images.tex. For example, 

  \documentclass{article}
  \newenvironment{foo}[1]{\begin{equation}\label{#1}}%
    {\end{equation}}
  \begin{document}
  \begin{foo}{label:1}
    \int f(x)
  \end{foo}
  \end{document}

is converted to 

  .....
  %
  \newenvironment{hoge}[1]{\begin{equation}\label{#1}}%%
  
  {\end{equation}} 
  .....

in images.tex. But, the environment of images.tex is not correct
(END part of the environment becomes NULL line), and the result 
of latex2html is not correct, too.

To avoid the problem, we may use other definitions:

[a] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{\end{equation}}
[b] \newenvironment{foo}[1]{\begin{equation}\label{#1}}
      {\end{equation}}
[c] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{%
      \end{equation}}
[d] \newenvironment{foo}[1]{\begin{equation}\label{#1}}{
      \end{equation}}

However, first definition

[e] \newenvironment{foo}[1]{\begin{equation}\label{#1}}%
      {\end{equation}}
 
is also correct in LATEX. 

Can I make latex2html not expand "}%\n" to "}%%\n\n" ?

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 shige@iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
+========================================================+