[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texi2html-bug] Footnote formatting
From: |
Reinhold Kainhofer |
Subject: |
Re: [Texi2html-bug] Footnote formatting |
Date: |
Mon, 1 Sep 2008 15:59:07 +0200 |
Am Sonntag, 24. August 2008 schrieb Reinhold Kainhofer:
> Rather, I would like to give you feedback on the footnote handling of
> texi2html:
[...]
4) If there is a macro in the footnote text, which generates @address@hidden
html
code, then the footnote shows some spurious line breaks and the <p>..</p>
will be inserted only around the second line of the footnote.
Attached is a minimal sample file, no .init file required. The relevant
texinfo code is:
@macro q{TEXT}
@html
‘\TEXT\’
@end html
@end macro
@c The footnote in this paragraph shows the linebreak like in the .texi file
@c which is clearly wrong. There is no linebreak in texinfo!
contexte de Voix @address@hidden context} en
anglais, ...}, alors ...
This creates wrong HTML code that looks like:
<h3>Footnotes</h3>
<h3><a name="FOOT1" href="#DOCF1">(1)</a></h3>
‘Voice context’ en
<p>anglais, ...
</p>
As you can see, the <p> is NOT inserted before the ‘, but at the
position where the line break in the .texi file appears.
A real-life example of this problem can be seen in the French translation of
lilypond's documentation:
http://kainhofer.com/~lilypond/texi2html-out/Documentation/user/lilypond-learning/Background.fr.html#FOOT3
Cheers,
Reinhold
texi2html_footnote_messedup_linebreak.texi
Description: Text document