Skip Menu |
 

This queue is for tickets about the Text-Tabs+Wrap CPAN distribution.

Report information
The Basics
Id: 104155
Status: new
Priority: 0/
Queue: Text-Tabs+Wrap

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

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



Subject: fill returns trailing spaces
Download (untitled) / with headers
text/plain 592b
https://metacpan.org/pod/Text::Wrap says: Show quoted text
> Text::Wrap::fill() <...> It will destroy any whitespace > in the original text. <...> wrap() compresses trailing > whitespace into one newline, and fill() deletes all > trailing whitespace.
Simple test show that fill does not delete all trailing whitespace: $ cat test.pl #!/usr/bin/perl use strict; use warnings; use Text::Wrap; print( "Text::Wrap version ", Text::Wrap->VERSION(), "\n" ); my $text = Text::Wrap::fill( '', '', "a\n" ); print( ">>$text<<\n" ); $ ./test.pl Text::Wrap version 2013.0523 Show quoted text
>>a <<
Note a space after letter "a".


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.