I had two issues in the HTML output of makeinfo (from cvs).

1. The caption of a float was not included in the same <div> as the
float itself. This had the effect, that if the float was centered the
caption text was left aligned, making it a mess. A fix is attached.

2. When referring to floats, makeinfo adds a link to the float, but the
text on the link has the node/anchor name instead of the float name.

For example the following texinfo code:

@ref{fig:tls-layers}

@float Figure,fig:tls-layers
@image{gnutls-layers,12cm}
@caption{The TLS protocol layers.}
@end float

results to a float that is called "Figure 3.2". I'd expect references to
it to use the "Figure 3.2" name, but instead the fig:tls-layers is used
in the html code below.

<a href="#fig_003atls_002dlayers">fig:tls-layers</a>


<div class="float"><a name="fig_003atls_002dlayers"></a>
<img src="gnutls-layers.png" alt="gnutls-layers">

<p><strong>Figure 3.1: </strong>The TLS protocol layers.</p></div>

regards,
Nikos

Index: tp/Texinfo/Convert/HTML.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/HTML.pm,v
retrieving revision 1.241
diff -u -r1.241 HTML.pm
--- tp/Texinfo/Convert/HTML.pm  1 Aug 2012 23:56:28 -0000       1.241
+++ tp/Texinfo/Convert/HTML.pm  2 Aug 2012 22:42:05 -0000
@@ -2726,7 +2726,7 @@
     pop @{$self->{'document_context'}};
   }
   return $self->_attribute_class('div','float'). '>' .$label."\n".$content.
-     '</div>' . $prepended_text.$caption_text;
+     $prepended_text.$caption_text . '</div>';
 }
 $default_commands_conversion{'float'} = \&_convert_float_command;
 

Reply via email to