Skip Menu |

This queue is for tickets about the Text-Autoformat CPAN distribution.

Report information
The Basics
Id: 101994
Status: resolved
Priority: 0/
Queue: Text-Autoformat

People
Owner: Nobody in particular
Requestors: bozziebear [...] hotmail.com
Cc:
AdminCc:

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



Subject: Fails with an empty string argument
autoformat("") returns undef instead of its empty string argument. Show quoted text
linux> perl afBugRpt.pl
Use of uninitialized value $formatted in concatenation (.) or string at afBugRpt.pl line 6. Test conditions: Text::Autoformat v1.67 perl v5.18.1, x86_64-linux-thread-multi Linux 3.11.10-25
Subject: afBugRpt.pl
use strict; use warnings; use Text::Autoformat; my $formatted = autoformat(""); print "$formatted\n";
Subject: Re: [rt.cpan.org #101994] Fails with an empty string argument
Date: Mon, 9 Feb 2015 12:51:52 +1100
To: bug-Text-Autoformat [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Thanks, Tom. That misbehaviour is now fixed in the latest update (just uploaded to CPAN). Damian
Subject: Re: [rt.cpan.org #101994] Fails with an empty string argument
Date: Mon, 9 Feb 2015 13:04:48 +1100
To: bug-Text-Autoformat [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Oops, just realized that Neil Bowers currently has the pumpkin on this module. Neil, could I prevail upon you to delete line 126: return unless length $text; which is causing this problem (and not really doing anything else that's useful). Thanks, Damian
Show quoted text
> Neil, could I prevail upon you to delete line 126: > > return unless length $text; > > which is causing this problem (and not really doing > anything else that's useful).
Yup. I'll merge your changes in with the release that I'd done, and do another release later, to get things back in sync. Neil