ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/podtbl
(Generate patch)

Comparing rxvt-unicode/doc/podtbl (file contents):
Revision 1.1 by root, Thu Aug 12 21:30:14 2004 UTC vs.
Revision 1.2 by root, Sat Aug 14 03:07:50 2004 UTC

56 my $cols = max map scalar @$_, @$table; 56 my $cols = max map scalar @$_, @$table;
57 57
58 my $fh = $self->output_handle; 58 my $fh = $self->output_handle;
59 59
60 # format the table 60 # format the table
61 # tbl first 61 # text
62 print $fh "=begin text\n\n";
63
64 for (@$table) {
65 print $fh " ", (map +(sprintf "%-15s ", $_), stripfcodes @$_), "\n";
66 }
67
68 print $fh "\n=end text\n\n";
69
70
71 # tbl
62 print $fh "=begin roff\n\n"; 72 print $fh "=begin roff\n\n";
63 73
64 print $fh ".TS\n" . ("l " x $cols) . ".\n"; 74 print $fh ".TS\n" . ("l " x $cols) . ".\n";
65 print $fh map +(join "\t", stripfcodes @$_) . "\n", @$table; 75 print $fh map +(join "\t", stripfcodes @$_) . "\n", @$table;
66 print $fh ".TE\n\n"; 76 print $fh ".TE\n";
67 77
68 print $fh "=end roff\n\n"; 78 print $fh "\n=end roff\n\n";
69 79
70 # html second 80 # html
71 print $fh "=begin html\n\n"; 81 print $fh "=begin html\n\n";
72 82
73 print $fh "<table>\n"; 83 print $fh "<table>\n";
74 print $fh map "<tr><td>" . +(join "</td><td>", htmlfcodes @$_) . "</td></tr>\n", @$table; 84 print $fh map "<tr><td>" . +(join "</td><td>", htmlfcodes @$_) . "</td></tr>\n", @$table;
75 print $fh "</table>\n\n"; 85 print $fh "</table>\n";
76 86
77 print $fh "=end html\n\n"; 87 print $fh "\n=end html\n\n";
78 88
79} 89}
80 90
81__PACKAGE__->new->parse_from_filehandle; 91__PACKAGE__->new->parse_from_filehandle;
82 92

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines