1 #!/usr/bin/perl -w # -*- perl -*-
4 require "t/pod2html-lib.pl";
8 use Test::More tests => 1;
10 convert_n_test("htmlview", "html rendering");
13 <?xml version="1.0" ?>
14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
15 <html xmlns="http://www.w3.org/1999/xhtml">
18 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
19 <link rev="made" href="mailto:[PERLADMIN]" />
22 <body style="background-color: white">
27 <li><a href="#NAME">NAME</a></li>
28 <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
29 <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
30 <li><a href="#METHODS-OTHER-STUFF">METHODS => OTHER STUFF</a>
32 <li><a href="#new-">new()</a></li>
33 <li><a href="#old-">old()</a></li>
36 <li><a href="#TESTING-FOR-AND-BEGIN">TESTING FOR AND BEGIN</a></li>
37 <li><a href="#TESTING-URLs-hyperlinking">TESTING URLs hyperlinking</a></li>
38 <li><a href="#SEE-ALSO">SEE ALSO</a></li>
39 <li><a href="#POD-ERRORS">POD ERRORS</a></li>
42 <h1 id="NAME">NAME</h1>
44 <p>Test HTML Rendering</p>
46 <h1 id="SYNOPSIS">SYNOPSIS</h1>
48 <pre><code> use My::Module;
50 my $module = My::Module->new();</code></pre>
52 <h1 id="DESCRIPTION">DESCRIPTION</h1>
54 <p>This is the description.</p>
56 <pre><code> Here is a verbatim section.</code></pre>
58 <p>This is some more regular text.</p>
60 <p>Here is some <b>bold</b> text, some <i>italic</i> and something that looks like an <html> tag. This is some <code>$code($arg1)</code>.</p>
62 <p>This <code>text contains embedded <b>bold</b> and <i>italic</i> tags</code>. These can be nested, allowing <b>bold and <i>bold & italic</i> text</b>. The module also supports the extended <b>syntax</b> and permits <i>nested tags & other <b>cool</b> stuff</i></p>
64 <h1 id="METHODS-OTHER-STUFF">METHODS => OTHER STUFF</h1>
66 <p>Here is a list of methods</p>
68 <h2 id="new-">new()</h2>
70 <p>Constructor method. Accepts the following config options:</p>
87 <p>This is a list within a list</p>
100 <dt id="baz">baz</dt>
107 <li><p>A correct list within a list</p>
118 <p>Title on the same line as the =item + * bullets</p>
122 <li><p><code>Black</code> Cat</p>
125 <li><p>Sat <span style="white-space: nowrap;"><i>on</i> the</span></p>
128 <li><p>Mat<!></p>
133 <p>Title on the same line as the =item + numerical bullets</p>
148 <p>Numbered list with text on the same line</p>
152 <dt id="Cat">1 Cat</dt>
156 <dt id="Sat">2 Sat</dt>
160 <dt id="Mat">3 Mat</dt>
166 <p>No bullets, no title</p>
181 <h2 id="old-">old()</h2>
183 <p>Destructor method</p>
185 <h1 id="TESTING-FOR-AND-BEGIN">TESTING FOR AND BEGIN</h1>
194 <p>intermediate text</p>
202 <h1 id="TESTING-URLs-hyperlinking">TESTING URLs hyperlinking</h1>
204 <p>This is an href link1: http://example.com</p>
206 <p>This is an href link2: http://example.com/foo/bar.html</p>
208 <p>This is an email link: mailto:foo@bar.com</p>
210 <pre><code> This is a link in a verbatim block <a href="http://perl.org"> Perl </a></code></pre>
212 <h1 id="SEE-ALSO">SEE ALSO</h1>
214 <p>See also <a href="/t/htmlescp.html">Test Page 2</a>, the <a>Your::Module</a> and <a>Their::Module</a> manpages and the other interesting file <i>/usr/local/my/module/rocks</i> as well.</p>
216 <h1 id="POD-ERRORS">POD ERRORS</h1>
218 <p>Hey! <b>The above document had some coding errors, which are explained below:</b></p>
222 <dt id="Around-line-45:">Around line 45:</dt>
225 <p>You can't have =items (as at line 49) unless the first thing after the =over is an =item</p>