Skip Menu |

This queue is for tickets about the Oxford-Calendar CPAN distribution.

Report information
The Basics
Id: 66439
Status: resolved
Priority: 0/
Queue: Oxford-Calendar

People
Owner: dom [...] cpan.org
Requestors: dave [...] earth.li
Cc:
AdminCc:

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



Subject: Synopsis example, could be improved
Date: Mon, 7 Mar 2011 10:29:25 +0000
To: bug-Oxford-Calendar [...] rt.cpan.org
From: David Sheldon <dave [...] earth.li>
The example for man Oxford::Calendar is: use Oxford::Calendar; print "Today is ", Oxford::Calendar::ToOx(reverse Date::Calc::Today); Which uses ToOx in the array context, and ends up with a string that isn't very readable as it has no spaces. If we replaced the ", " with a "." then it'll use ToOx in the string context and actually format a date. Currently it says: Today is Monday8Hilary2011 With my change it'll say: Today is Monday, 8th week, Hilary 2011 A '\n' wouldn't go amis either, but might mess up the clarity of the example. David -- "Plastic is only rubber made with oil" -- a Member of the Technical Staff
Subject: Re: [rt.cpan.org #66439] Synopsis example, could be improved
Date: Thu, 10 Mar 2011 14:32:34 +0000
To: "dave [...] earth.li via RT" <bug-Oxford-Calendar [...] rt.cpan.org>
From: Dominic Hargreaves <dom [...] earth.li>
On Mon, Mar 07, 2011 at 05:29:35AM -0500, dave@earth.li via RT wrote: Show quoted text
> The example for man Oxford::Calendar is: > > use Oxford::Calendar; > print "Today is ", Oxford::Calendar::ToOx(reverse Date::Calc::Today); > > Which uses ToOx in the array context, and ends up with a string that > isn't very readable as it has no spaces. If we replaced the ", " with a > "." then it'll use ToOx in the string context and actually format a > date. > > Currently it says: > Today is Monday8Hilary2011 > > With my change it'll say: > Today is Monday, 8th week, Hilary 2011 > > A '\n' wouldn't go amis either, but might mess up the clarity of the > example.
Thanks, fixed in subversion (including replacing print with say). -- Dominic Hargreaves | http://www.larted.org.uk/~dom/ PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
On Thu Mar 10 09:32:43 2011, dom@earth.li wrote: Show quoted text
> On Mon, Mar 07, 2011 at 05:29:35AM -0500, dave@earth.li via RT wrote:
> > The example for man Oxford::Calendar is: > > > > use Oxford::Calendar; > > print "Today is ", Oxford::Calendar::ToOx(reverse Date::Calc::Today); > > > > Which uses ToOx in the array context, and ends up with a string that > > isn't very readable as it has no spaces. If we replaced the ", " with a > > "." then it'll use ToOx in the string context and actually format a > > date. > > > > Currently it says: > > Today is Monday8Hilary2011 > > > > With my change it'll say: > > Today is Monday, 8th week, Hilary 2011 > > > > A '\n' wouldn't go amis either, but might mess up the clarity of the > > example.
> > Thanks, fixed in subversion (including replacing print with say).
Fixed in 2.05.