BEGIN { use File::Spec::Functions ':ALL'; @INC = map { rel2abs($_) } (qw| ./lib ./t/lib ../../lib |); } use strict; use warnings; use Test::More; use Testing qw( setup_testing_dir xconvert ); use Cwd; my $debug = 0; my $startdir = cwd(); END { chdir($startdir) or die("Cannot change back to $startdir: $!"); } my ($expect_raw, $args); { local $/; $expect_raw = ; } my $tdir = setup_testing_dir( { debug => $debug, } ); $args = { podstub => "htmlview", description => "html rendering", expect => $expect_raw, p2h => { podpath => 't', quiet => 1, }, }; xconvert($args); done_testing; __DATA__ Test HTML Rendering

NAME

Test HTML Rendering

SYNOPSIS

use My::Module;

my $module = My::Module->new();

DESCRIPTION

This is the description.

Here is a verbatim section.

This is some more regular text.

Here is some bold text, some italic and something that looks like an <html> tag. This is some $code($arg1).

This text contains embedded bold and italic tags. These can be nested, allowing bold and bold & italic text. The module also supports the extended syntax and permits nested tags & other cool stuff

METHODS => OTHER STUFF

Here is a list of methods

new()

Constructor method. Accepts the following config options:

foo

The foo item.

bar

The bar item.

    This is a list within a list

    *

    The wiz item.

    *

    The waz item.

baz

The baz item.

  • A correct list within a list

  • Boomerang

Title on the same line as the =item + * bullets

Title on the same line as the =item + numerical bullets

  1. Cat

  2. Sat

  3. Mat

Numbered list with text on the same line

1 Cat
2 Sat
3 Mat

No bullets, no title

old()

Destructor method

TESTING FOR AND BEGIN


blah blah

intermediate text

HTML some text

TESTING URLs hyperlinking

This is an href link1: http://example.com

This is an href link2: http://example.com/foo/bar.html

This is an email link: mailto:foo@bar.com

This is a link in a verbatim block <a href="http://perl.org"> Perl </a>

SEE ALSO

See also Test Page 2, the Your::Module and Their::Module manpages and the other interesting file /usr/local/my/module/rocks as well.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 45:

You can't have =items (as at line 49) unless the first thing after the =over is an =item