Skip Menu |

This queue is for tickets about the Time-Human CPAN distribution.

Report information
The Basics
Id: 19676
Status: resolved
Priority: 0/
Queue: Time-Human

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

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



Subject: incorrect / unneeded spaces in humanize output
Time::Human's humanize routine returns strings with too many spaces, sometimes. Here are some examples: DB<1> use Time::Human DB<2> x humanize localtime 0 'just after five past midday ' DB<3> x humanize localtime(0) 0 'exactly seven o\'clock in the evening ' The attached patch fixes this. -- rjbs
Subject: spaces.patch
--- /usr/local/lib/perl5/site_perl/5.8.8/Time/Human.pm 2002-05-30 07:01:27.000000000 -0400 +++ Human.pm 2006-06-03 12:16:02.000000000 -0400 @@ -80,6 +80,7 @@ $rv =~ s/%m/$say_min/g; $rv =~ s/%h/$say_hour/g; $rv =~ s/%d/$daytime/g; + $rv =~ s/^\s+|(?<=\s)\s|\s+$//g return $rv; }
On Sat Jun 03 12:17:01 2006, RJBS wrote: Show quoted text
> The attached patch fixes this.
Now I have attached a corrected dist, ready to upload. -- rjbs
Download Time-Human-1.03.tar.gz
application/x-gzip 2.9k

Message body not shown because it is not plain text.

fixed in 1.03 -- rjbs