>
> Thanks for all the explanation, Ross... that makes things a lot
> clearer.
>
> I've implemented his question mark fix (in lieu of my asterisk fix),
> and the remaining comments use that version of L2H.
>
> Ross Moore writes:
> > > There still seems to be an extra vertical space (carriage return) in
> > > the output after a single line verbatim environment (as in Bug 1a),
> > > but that doesn't bother me a whole lot. I imagine that Ross might be
> > > able to fix that too.
Surely it happens everytime the last line of the verbatim includes a % .
The current code always places a \n before the </PRE> ,
but that combines with the \n after the reinserted comment text
to give the extra line.
This is fixed in &replace_verbatim_marks as follows:
(note the declaration/use of a local variable $tmp)
8240a8268
> my($tmp);
8243c8271,8273
< s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)#/\n$verbatim{$2}\n/go;
---
> ## s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)#/\n$verbatim{$2}\n/go;
> s!$verbatim_mark(\w*[vV]erbatim\*?)(\d+)#!$tmp=$verbatim{$2};
> "\n".$tmp.(($tmp =~/\n\s*$/s)? '':"\n")!eg;
I suspect a small change is needed in &revert_to_raw_tex as well:
9175c9205,9208
< s/$comment_mark(\d+)\n/$verbatim{$1}\n/go;
---
> ## s/$comment_mark(\d+)\n/$verbatim{$1}\n/go;
> s/$comment_mark(\d+)\n/$verbatim{$1}/go;
> ## RRM: Is that trailing \n required ? I think not, since the replacement
> ## text should include one already.
Test this by putting a verbatim environment inside a figure,
or {makeimage} environment, and see whether the code in images.tex
has the correct number of lines.
Hopefully this fixes these comments/white-space problems completely.
... well, until another really esoteric usage emerges, at least.
;-)
Cheers,
Ross Moore
> >
> > That is probably a browser thing, concerning how it displays:
> >
> > ...some text...</PRE>
> >
> > and
> >
> > ...some text ...
> > </PRE>
> >
> >
> > Are these the same ?
> > Or do we get an extra line of vertical space ?
> >
> > Should LaTeX2HTML produce the former, or the (more readable in the
> > HTML file) latter?
>
> It turns out it's not a browser thing. This file:
>
> -----Begin File-------
> \documentclass{report}
> \begin{document}
>
> \begin{verbatim}
> % Line 1
> \end{verbatim}
>
> \end{document}
> -----End File-------
>
> Produces HTML which includes this construction:
>
> <PRE>
> % Line 1
>
> </PRE>
>
> which has an extra line inside the <PRE> environment.
>
> Ross Moore writes:
> > > BTW, is it time to freeze L2H V98.2 and let new updates modify a
> > > V99.1 ? Or maybe we should just call the latest version 99.1 ?
> >
> > I support this idea.
> > With the next set of patches that I, or anyone else makes,
> > we should change the name to V99.1 (beta) .
>
> Great...
>
>
> -Mike
>
> ============================================================================
> Michael L. Hall -- <mailto:[EMAIL PROTECTED]> -- <http://www.lanl.gov/home/Hall>
> ============================================================================
> The Feynman Problem Solving Algorithm:
> 1) Write down the problem
> 2) Think very hard
> 3) Write down the answer
>
> Murray Gell-Mann
>