in reply to Re^2: Escape newlines in POD / (Selectively) don't generate space characters instead (Z<< >>)
in thread Escape newlines in POD / (Selectively) don't generate space characters instead

Instead of Z<>, you could try Z<< >>.
Of course, a very interesting interpretation of "mandatory whitespace" when using repeated angle brackets. :)
It does seem to let Pod::Man ignore such errors, because whitespace is ignored, but sadly doesn't seem to be a general solution either.

Example, generated by Pod::Simple::HTML (I have slightly amended the text to include a missing "the"):

<p>Refer to the <a>foobar section in the Module::Really::Really::Reall +y::Very::Very::Long documentation</a></p>
While pod2html didn't throw any error, the link is clearly broken (misses a location), and, what isn't immediately seen, any data after the link is missing, too. I.e., the same HTML output is generated by this input:
=pod Refer to the L<foobar section in the Module::Really::Really::Really::Very::Very::Long documentation|Z<< >>Module::Really::Really::Really::Very::Very::Long/foobar>. asdf fff =cut
Losing data is bad. :/

  • Comment on Re^3: Escape newlines in POD / (Selectively) don't generate space characters instead (Z<< >>)
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: Escape newlines in POD / (Selectively) don't generate space characters instead (Z<< >>)
by Anonymous Monk on Nov 11, 2020 at 03:22 UTC
    links/urls, they just dont wrap, quit wrapping them, wrap the text