perl/Porting/podtidy
Nicholas Clark 99d49b358b Porting/podtidy can pass 'columns' to Pod::Tidy::tidy_files().
Pod::Tidy 0.10 added this. It's cleaner than setting $Text::Wrap::columns.
2011-12-21 14:50:02 +01:00

17 lines
303 B
Perl

#!perl
use strict;
use warnings;
use Pod::Tidy 0.10;
# Reformat pod using Pod::Tidy
my $filename = shift || die "Usage podtidy [filename]";
Pod::Tidy::tidy_files(
files => [$filename],
verbose => 1,
inplace => 1,
nobackup => 1,
columns => 72, # 72 is what fmt defaults to
);