Pod::Simple::Role::StripVerbatimIndent - Strip indentation from verbatim sections sanely
package MyPodParser; with 'Pod::Simple::Role::StripVerbatimIndent; my $parser = MyPodParser->new; $parser->output_string(\my $html); $parser->parse_string_document($pod);
Strips the indentation from verbatim blocks, while not corrupting tab indents.
The shortest indentation in the verbatim block (excluding empty lines) will be stripped from all lines.
By default, using this role will disable tab expansion. It can be re-enabled using expand_verbatim_tabs
See MetaCPAN::Pod::XHTML for support and contact information.
See MetaCPAN::Pod::XHTML for authors.
See MetaCPAN::Pod::XHTML for the copyright and license.
To install MetaCPAN::Pod::XHTML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MetaCPAN::Pod::XHTML
CPAN shell
perl -MCPAN -e shell install MetaCPAN::Pod::XHTML
For more information on module installation, please visit the detailed CPAN module installation guide.