]> git.donarmstrong.com Git - lilypond.git/commitdiff
Texi2HTML: don't wrap <p> around the contents of table cells.
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 13 Aug 2011 13:32:37 +0000 (15:32 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 15 Aug 2011 23:34:04 +0000 (01:34 +0200)
    This fixes the ugly huge space around table cells in our documentation

Documentation/lilypond-texi2html.init

index 6814aafed73b77435468900be865f84cf339a508..3585a9e8ede21472bd4c36d9ad08b2f6ad2105d6 100644 (file)
@@ -55,6 +55,8 @@
 ###           makeinfo_like_foot_line_and_ref
 ###           makeinfo_like_foot_lines
 ###           makeinfo_like_paragraph
+### -) In tables, don't wrap <p> around the contents. Implemented in
+###           makeinfo_like_paragraph
 ###
 ###
 ### Useful helper functions:
@@ -2070,6 +2072,13 @@ sub makeinfo_like_paragraph ($$$$$$$$$$$$$)
          return $text  if (($format eq 'itemize' or $format eq 'enumerate') and
             ($$paragraph_number == 1));
     }
+    # The cells of a table should not be wrapped in a <p> tag, so just return the text
+    if (defined($command_stack_at_begin->[0]) and $command_stack_at_begin->[0] eq 'multitable')
+    {
+        return $text;
+    }
+
+    # Adjust all footnotes so that they look like good old makeinfo
     my $open = '<p';
     if ($align)
     {