[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Texi2HTML: don't wrap <p> around the contents of table cells. (issue 489
From: |
reinhold . kainhofer |
Subject: |
Texi2HTML: don't wrap <p> around the contents of table cells. (issue 4891044) |
Date: |
Sat, 13 Aug 2011 13:51:42 +0000 |
Reviewers: ,
Message:
This patch prevents all table cells in our documentation from being
wrapped with a <p>, which causes huge spacing, like in
http://lilypond.org/doc/v2.14/Documentation/learning/on-the-un_002dnestedness-of-brackets-and-ties.html
http://lilypond.org/doc/v2.14/Documentation/learning/engravers-explained
http://lilypond.org/doc/v2.14/Documentation/music-glossary/pitch-names
Please review
Description:
Texi2HTML: don't wrap <p> around the contents of table cells.
This fixes the ugly huge space around table cells in our
documentation
Please review this at http://codereview.appspot.com/4891044/
Affected files:
M Documentation/lilypond-texi2html.init
Index: Documentation/lilypond-texi2html.init
diff --git a/Documentation/lilypond-texi2html.init
b/Documentation/lilypond-texi2html.init
index
6814aafed73b77435468900be865f84cf339a508..e0ebeae75a76d0b96e269e009cf94320f8381354
100644
--- a/Documentation/lilypond-texi2html.init
+++ b/Documentation/lilypond-texi2html.init
@@ -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)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Texi2HTML: don't wrap <p> around the contents of table cells. (issue 4891044),
reinhold . kainhofer <=