Subject: | Text::Wrap in Pod::PseudoPod::HTML Breaks HTML Tags |
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.