#!/usr/bin/perl -w # -*- perl -*- BEGIN { require "./t/pod2html-lib.pl"; } use strict; use Test::More tests => 1; convert_n_test("htmlview", "html rendering", "--quiet"); __DATA__
Test HTML Rendering
use My::Module;
my $module = My::Module->new();
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
Here is a list of methods
Constructor method. Accepts the following config options:
The foo item.
The bar item.
This is a list within a list
*
The wiz item.
*
The waz item.
The baz item.
A correct list within a list
Boomerang
Title on the same line as the =item + * bullets
Black
Cat
Sat on the
Mat<!>
Title on the same line as the =item + numerical bullets
Cat
Sat
Mat
Numbered list with text on the same line
No bullets, no title
Cat
Sat
Mat
Destructor method
blah blah
intermediate text
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 Test Page 2, the Your::Module and Their::Module manpages and the other interesting file /usr/local/my/module/rocks as well.
Hey! The above document had some coding errors, which are explained below:
You can't have =items (as at line 49) unless the first thing after the =over is an =item