This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c938471
)
Porting/podtidy can pass 'columns' to Pod::Tidy::tidy_files().
author
Nicholas Clark
<nick@ccl4.org>
Wed, 21 Dec 2011 13:36:43 +0000
(14:36 +0100)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 21 Dec 2011 13:50:02 +0000
(14:50 +0100)
Pod::Tidy 0.10 added this. It's cleaner than setting $Text::Wrap::columns.
Porting/podtidy
patch
|
blob
|
blame
|
history
diff --git
a/Porting/podtidy
b/Porting/podtidy
index
a15b378
..
05ec740
100644
(file)
--- a/
Porting/podtidy
+++ b/
Porting/podtidy
@@
-1,13
+1,10
@@
#!perl
use strict;
use warnings;
-use Pod::Tidy;
+use Pod::Tidy
0.10
;
# Reformat pod using Pod::Tidy
-# 72 is what fmt defaults to
-$Text::Wrap::columns = 72;
-
my $filename = shift || die "Usage podtidy [filename]";
Pod::Tidy::tidy_files(
@@
-15,4
+12,5
@@
Pod::Tidy::tidy_files(
verbose => 1,
inplace => 1,
nobackup => 1,
+ columns => 72, # 72 is what fmt defaults to
);