X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fpod2text.PL;h=b4965cb00ffdaa78b4b9b5cd3ced3fa03061903f;hb=22d4bb9ccb8701e68f9243547d7e3a3c55f70908;hp=c5460aef30e417aebff4882d01b044344e47b4ef;hpb=4b19af017623bfa3bb72bb164598a517f586e0d3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/pod2text.PL b/pod/pod2text.PL index c5460ae..b4965cb 100644 --- a/pod/pod2text.PL +++ b/pod/pod2text.PL @@ -75,7 +75,8 @@ my %options; $options{sentence} = 0; Getopt::Long::config ('bundling'); GetOptions (\%options, 'alt|a', 'color|c', 'help|h', 'indent|i=i', - 'loose|l', 'sentence|s', 'termcap|t', 'width|w=i') or exit 1; + 'loose|l', 'quotes|q=s', 'sentence|s', 'termcap|t', + 'width|w=i') or exit 1; pod2usage (1) if $options{help}; # Figure out what formatter we're going to use. -c overrides -t. @@ -103,7 +104,8 @@ pod2text - Convert POD data to formatted ASCII text =head1 SYNOPSIS -pod2text [B<-aclst>] [B<-i> I] [B<-w> I] [I [I]] +pod2text [B<-aclst>] [B<-i> I] [B<-q> I] [B<-w> I] +[I [I]] pod2text B<-h> @@ -148,6 +150,18 @@ printed after C<=head1>, although one is still printed after C<=head2>, because this is the expected formatting for manual pages; if you're formatting arbitrary text documents, using this option is recommended. +=item B<-q> I, B<--quotes>=I + +Sets the quote marks used to surround CE> text to I. If +I is a single character, it is used as both the left and right +quote; if I is two characters, the first character is used as the +left quote and the second as the right quoted; and if I is four +characters, the first two are used as the left quote and the second two as +the right quote. + +I may also be set to the special value C, in which case no +quote marks are added around CE> text. + =item B<-s>, B<--sentence> Assume each sentence ends with two spaces and try to preserve that spacing.