Assume a .pod file contains preformatted text marked with ", e.g.,
"I want these 4 additional whitespaces to remain in HTML".
pod2man
correctly retains the formatting. pod2html
removes the whitespaces.
Basically, what I’d like to get is
<pre>I want these 4 additional whitespaces to remain in HTML<pre>
in the HTML output, not "I want these 4 additional whitespaces to remain in HTML" (additional white spaces gone).
Or asked differently, is there any way to mark up text such as for pod2html
to not remove additional whitespaces?
The only solution I found so far is writing bespoke =begin html … =end html code, but that seems a cludge.
2
Answers
Thanks for all suggestions above. A "full paragraph" solution didn't work as the sample should appear in free-flowing text. So here's the approach (again, a full sample file) that did the trick for me:
Apologies for not having thought about being more specific / providing sample code.
I created this file, test.pod, which has a "Verbatim" block of indented text:
When I run this with pod2html (Pod::Html 1.35, but also tested back to 1.22). Note that the quotes are still there, but escaped: