Skip Menu |

This queue is for tickets about the CPAN-Changes CPAN distribution.

Report information
The Basics
Id: 67441
Status: resolved
Priority: 0/
Queue: CPAN-Changes

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.16
Fixed in: (no value)



Subject: {{$NEXT}} is serialized with excess whitespace
Its probably not important for most people, but its annoying me somewhat.

When you parse a perfectly valid file with a {{$NEXT}} token in it, and then re-serialize the output, an additional whitespace is added after the {{$NEXT}} token.

This is due I think to this line of code: https://github.com/bricas/cpan-changes/blob/master/lib/CPAN/Changes/Release.pm#L107

my
$output = sprintf "%s %s\n", $self->version, $self->date;

->date is of course "undefined" here, emitting "{VERSION}{SPACE}"  where merely "{VERSION}" would be preferable.

Thanks.
Fixed in git [1]. To be released in version 0.17 soon. Thanks! -Brian [1] https://github.com/bricas/cpan-changes/commit/c424266914aa663b6e7e02596a21d867a637a047