Skip to content

Commit

Permalink
wrap at 78 columns rather than 76
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Oct 10, 2014
1 parent 3349382 commit 63d6022
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/CPAN/Changes/Group.pm
Expand Up @@ -59,6 +59,7 @@ sub serialize {
$output .= sprintf " [ %s ]\n", $name if length $name;
$indent .= ' ';
}
local $Text::Wrap::columns = 78;
$output .= Text::Wrap::wrap( "$indent- ", "$indent ", $_ ) . "\n" for @{ $self->changes };

return $output;
Expand Down
4 changes: 2 additions & 2 deletions t/serialize.t
Expand Up @@ -90,8 +90,8 @@ EOCHANGES
Revision history for perl module Foo::Bar
0.01 2010-06-16
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. In quis tortor
ac urna faucibus feugiat.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. In quis tortor ac
urna faucibus feugiat.
EOCHANGES

is( $changes->serialize, $expected, 'serialize with line-wrap' );
Expand Down

0 comments on commit 63d6022

Please sign in to comment.