ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/doc/pod2texi
(Generate patch)

Comparing gvpe/doc/pod2texi (file contents):
Revision 1.6 by pcg, Thu Jan 27 06:16:16 2005 UTC vs.
Revision 1.8 by pcg, Wed Aug 27 22:14:03 2008 UTC

1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3# TODO: texinfo fails on @cinde xin title elements etc. *sigh* 3# TODO: texinfo fails on @cindex in title elements etc. *sigh*
4 4
5use Pod::POM; 5use Pod::POM;
6 6
7sub escape_texi($) { 7sub escape_texi($) {
8 local $_ = shift; 8 local $_ = shift;
92 out "\n\n\@itemize\n"; 92 out "\n\n\@itemize\n";
93 $walker->($_) for $n->content; 93 $walker->($_) for $n->content;
94 out "\@end itemize\n\n"; 94 out "\@end itemize\n\n";
95 95
96 } elsif ($t eq "item") { 96 } elsif ($t eq "item") {
97 out "\n\n\@item\n\@b{" . $n->title . "}\n\n"; 97 out "\n\n\@item\n" . $n->title . "\n\n";
98 98
99 if ($n->title->present (TXT::) =~ /^\s*([a-zA-Z0-9\-\_]+)\s*=/) { 99 if ($n->title->present (TXT::) =~ /^\s*([a-zA-Z0-9\-\_]+)\s*=/) {
100 out "\@cindex $1\n"; 100 out "\@cindex $1\n";
101 } 101 }
102 $walker->($_) for $n->content; 102 $walker->($_) for $n->content;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines