Skip Menu |
 

This queue is for tickets about the Pod-PseudoPod CPAN distribution.

Report information
The Basics
Id: 58784
Status: resolved
Priority: 0/
Queue: Pod-PseudoPod

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

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



Subject: Text::Wrap in Pod::PseudoPod::HTML Breaks HTML Tags
Download (untitled) / with headers
text/plain 567b
The regular expression Text::Wrap uses to wrap plain text at or around n characters per line knows nothing about HTML tags. In particular, it has a propensity to insert a newline at the first word character of a closing word tag. P::PP::H should never generate invalid HTML. I've disabled this behavior locally by overriding Text::Wrap::wrap() before formatting HTML, but this is an ugly workaround. If pretty printed HTML is necessary, the HTML::Tidy module is much more reliable. This seems better as a postprocessing step which users can configure themselves.
Fixed in commit 3ae770b; fix will be part of P::P 0.17 release.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.