From: idl0r Date: Sat, 2 May 2009 12:17:14 +0000 (-0000) Subject: Fixed text_fill, \h is just available in perl >= 5.10 so use hex instead, thanks... X-Git-Tag: gentoolkit-0.3.0_rc5~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5c7f17a865c3bc6ff5a43a2da458e307d4ab22e;p=gentoolkit.git Fixed text_fill, \h is just available in perl >= 5.10 so use hex instead, thanks to ohnobinki. svn path=/; revision=575 --- diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 9f9e365..66007fa 100755 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -93,7 +93,6 @@ sub getenv($) { # Copied from Text::Wrap. # The only modified thing is: # We trim _just_ tab/space etc. but not \n/\r. -# So \h should cover \x09, \x0B, \x0C and \x20. # \s treats even \n/\r as whitespace. sub text_fill { my ($ip, $xp, @raw) = @_; @@ -101,7 +100,7 @@ sub text_fill { my $pp; for $pp ( split(/\n\s+/, join("\n", @raw)) ) { - $pp =~ s/\h+/ /g; + $pp =~ s/[\x09|\x0B|\x0C|\x20]+/ /g; my $x = Text::Wrap::wrap($ip, $xp, $pp); push(@para, $x); }