Skip Menu |

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

Report information
The Basics
Id: 73657
Status: resolved
Priority: 0/
Queue: Text-Markdown-Discount

People
Owner: Nobody in particular
Requestors: joey [...] kitenet.net
Cc:
AdminCc:

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



Subject: empty or all newlines input causes warning message
joey@gnu:~>perl -e 'use Text::Markdown::Discount; Text::Markdown::Discount::markdown("\n\n\n\n")' Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.14.2/Text/Markdown/Discount.pm line 54. joey@gnu:~>perl -e 'use Text::Markdown::Discount; Text::Markdown::Discount::markdown("")' Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.14.2/Text/Markdown/Discount.pm line 54.
Actually, any input matching m/^\s*$/s triggers this bug.
This has something to do with the old version of discount bundled with the perl module. Once I got it building with a current version of discount, this bug stopped happening.
https://github.com/sekimura/text-markdown- discount/commit/66bfa19d85cee2a987737b6934455397e4e3e244 I'm testing 2.1.2 on master. With tweaks for Makefile.PL, looks like it's working fine. I'll push a new version to cpan later. thanks for the heads up --Masa
On Sun Jan 01 16:59:34 2012, JOEY wrote: Show quoted text
> This has something to do with the old version of discount bundled with > the perl module. Once I got it building with a current version of > discount, this bug stopped happening.
I was not able to reproduce the issue but added a test case for this. 0.02 has been uploaded to CPAN and will be indexed "shortly". Let me know if you still have the issue or not. Thank you, --Masa