texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/tp/Texinfo/Convert HTML.pm


From: Patrice Dumas
Subject: texinfo/tp/Texinfo/Convert HTML.pm
Date: Tue, 31 May 2011 20:36:03 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/05/31 20:36:03

Modified files:
        tp/Texinfo/Convert: HTML.pm 

Log message:
        Handle table item.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/HTML.pm?cvsroot=texinfo&r1=1.69&r2=1.70

Patches:
Index: HTML.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/HTML.pm,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -b -r1.69 -r1.70
--- HTML.pm     30 May 2011 23:14:34 -0000      1.69
+++ HTML.pm     31 May 2011 20:36:02 -0000      1.70
@@ -2851,6 +2851,20 @@
   $default_commands_conversion{$command} = \&_convert_def_command;
 }
 
+sub _convert_table_item_type($$$$)
+{
+  my $self = shift;
+  my $type = shift;
+  my $command = shift;
+  my $content = shift;
+
+  if ($content =~ /\S/) {
+    return '<dd>' . $content . '</dd>'."\n";
+  }
+}
+
+$default_types_conversion{'table_item'} = \&_convert_table_item_type;
+
 # This type is the only one present if there are no elements.  It is 
 # therefore used to do the formatting of the element in case there are no 
 # element.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]