[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texi2html-bug] @multitable inside @smallexample
From: |
Reinhold Kainhofer |
Subject: |
[Texi2html-bug] @multitable inside @smallexample |
Date: |
Sun, 14 Sep 2008 20:45:05 +0200 |
User-agent: |
KMail/1.9.10 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Patrick!
We ran into another formatting problem: We have some multi-column tables
inside a @smallexample section, e.g.
@smallexample
@multitable {Header1} {Length of second col} {third col}
@headitem Language
@tab Note names
@tab sharp
@item nederlands.ly
@tab c d e f g a bes b
@tab -is
@end multitable
@end smallexample
Now, the problem with texi2html is that it creates a table and wraps a
<pre ...> around the table contents, were it also inserts spaces and
linebreaks, which then of course show up in the HTML:
<table><tr><td> </td><td><table>
<thead><tr><th><pre class="smallexample"> Language
</pre></th><th><pre class="smallexample"> Note names
</pre></th><th><pre class="smallexample"> sharp
</pre></th></tr></thead>
<tr><td><pre class="smallexample"> nederlands.ly
</pre></td><td><pre class="smallexample"> c d e f g a bes b
</pre></td><td><pre class="smallexample"> -is
</pre></td></tr>
</table>
</td></tr></table>
makeinfo --html in contrast converts it to one <pre..> around the whole table
and removes leading/trailing whitespace/linebreaks:
<pre class="smallexample">
<p><table summary=""><tr align="left"><th valign="top">Language
</th><th valign="top">Note names
</th><th valign="top">sharp
<br></th></tr><tr align="left"><td valign="top">nederlands.ly
</td><td valign="top">c d e f g a bes b
</td><td valign="top">-is
<br></td></tr></table>
</pre>
A small example showing this is attached. No .init file is needed.
Is there any way to fix this or is this simply bad texinfo practice and should
be rewritten in the .texi file (how?)?
Cheers,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIzVuyTqjEwhXvPN0RAqr8AJsGrBEnhUotv9dqomA6oHQjCprhMACgqo4N
9fLO35giP7cvQaUXgsbc21A=
=Y8ps
-----END PGP SIGNATURE-----
texi2html_smallexample_table.texi
Description: Text document
texi2html_smallexample_table_makeinfo.html
Description: Text document
texi2html_smallexample_table_texi2html.html
Description: Text document
- [Texi2html-bug] @multitable inside @smallexample,
Reinhold Kainhofer <=