Skip Menu |

This queue is for tickets about the Math-Units CPAN distribution.

Report information
The Basics
Id: 80424
Status: open
Priority: 0/
Queue: Math-Units

People
Owner: kfox [...] vulpes.com
Requestors: gsullivan [...] cpan.org
Cc:
AdminCc:

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



Subject: Code in POD not rendering well
The code in the POD does not render properly because it is not in "verbatim paragraphs". The 4 lines in the EXAMPLES section show up as one wrapping line. The enclosed patch improves how the POD is rendered.
Subject: diff-u.txt
--- Units.pm.1.3 2008-07-24 20:37:03.000000000 -0400 +++ Units.pm 2012-10-26 15:00:12.000000000 -0400 @@ -25,9 +25,9 @@ =head1 SYNOPSIS -use Math::Units qw(convert); + use Math::Units qw(convert); -my $out_value = convert($in_value, 'in unit', 'out unit'); + my $out_value = convert($in_value, 'in unit', 'out unit'); =head1 DESCRIPTION @@ -76,10 +76,10 @@ =head1 EXAMPLES -print "5 mm == ", convert(5, 'mm', 'in'), " inches\n"; -print "72 degrees Farenheit == ", convert(72, 'F', 'C'), " degrees Celsius\n"; -print "1 gallon == ", convert(1, 'gallon', 'cm^3'), " cubic centimeters\n"; -print "4500 rpm == ", convert(4500, 'rpm', 'Hz'), " Hertz\n"; + print "5 mm == ", convert(5, 'mm', 'in'), " inches\n"; + print "72 degrees Farenheit == ", convert(72, 'F', 'C'), " degrees Celsius\n"; + print "1 gallon == ", convert(1, 'gallon', 'cm^3'), " cubic centimeters\n"; + print "4500 rpm == ", convert(4500, 'rpm', 'Hz'), " Hertz\n"; =cut
I've made the change to a verbatim paragraph. I'm not sure it makes any improvement in this case since the code sample is so short. Change will appear in 1.4. See https://github.com/kenfox/Math-Units for changes.