1#!/usr/bin/perl -w # -*- perl -*- 2 3BEGIN { 4 require "./t/pod2html-lib.pl"; 5} 6 7use strict; 8use Test::More tests => 1; 9 10convert_n_test("htmlview", "html rendering", "--quiet"); 11 12__DATA__ 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"> 16<head> 17<title>Test HTML Rendering</title> 18<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 19<link rev="made" href="mailto:[PERLADMIN]" /> 20</head> 21 22<body> 23 24 25 26<ul id="index"> 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> 31 <ul> 32 <li><a href="#new">new()</a></li> 33 <li><a href="#old">old()</a></li> 34 </ul> 35 </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> 40</ul> 41 42<h1 id="NAME">NAME</h1> 43 44<p>Test HTML Rendering</p> 45 46<h1 id="SYNOPSIS">SYNOPSIS</h1> 47 48<pre><code> use My::Module; 49 50 my $module = My::Module->new();</code></pre> 51 52<h1 id="DESCRIPTION">DESCRIPTION</h1> 53 54<p>This is the description.</p> 55 56<pre><code> Here is a verbatim section.</code></pre> 57 58<p>This is some more regular text.</p> 59 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> 61 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> 63 64<h1 id="METHODS-OTHER-STUFF">METHODS => OTHER STUFF</h1> 65 66<p>Here is a list of methods</p> 67 68<h2 id="new">new()</h2> 69 70<p>Constructor method. Accepts the following config options:</p> 71 72<dl> 73 74<dt id="foo">foo</dt> 75<dd> 76 77<p>The foo item.</p> 78 79</dd> 80<dt id="bar">bar</dt> 81<dd> 82 83<p>The bar item.</p> 84 85<ul> 86 87<p>This is a list within a list</p> 88 89<p>*</p> 90 91<p>The wiz item.</p> 92 93<p>*</p> 94 95<p>The waz item.</p> 96 97</ul> 98 99</dd> 100<dt id="baz">baz</dt> 101<dd> 102 103<p>The baz item.</p> 104 105<ul> 106 107<li><p>A correct list within a list</p> 108 109</li> 110<li><p>Boomerang</p> 111 112</li> 113</ul> 114 115</dd> 116</dl> 117 118<p>Title on the same line as the =item + * bullets</p> 119 120<ul> 121 122<li><p><code>Black</code> Cat</p> 123 124</li> 125<li><p>Sat <span style="white-space: nowrap;"><i>on</i> the</span></p> 126 127</li> 128<li><p>Mat<!></p> 129 130</li> 131</ul> 132 133<p>Title on the same line as the =item + numerical bullets</p> 134 135<ol> 136 137<li><p>Cat</p> 138 139</li> 140<li><p>Sat</p> 141 142</li> 143<li><p>Mat</p> 144 145</li> 146</ol> 147 148<p>Numbered list with text on the same line</p> 149 150<dl> 151 152<dt id="Cat">1 Cat</dt> 153<dd> 154 155</dd> 156<dt id="Sat">2 Sat</dt> 157<dd> 158 159</dd> 160<dt id="Mat">3 Mat</dt> 161<dd> 162 163</dd> 164</dl> 165 166<p>No bullets, no title</p> 167 168<ul> 169 170<li><p>Cat</p> 171 172</li> 173<li><p>Sat</p> 174 175</li> 176<li><p>Mat</p> 177 178</li> 179</ul> 180 181<h2 id="old">old()</h2> 182 183<p>Destructor method</p> 184 185<h1 id="TESTING-FOR-AND-BEGIN">TESTING FOR AND BEGIN</h1> 186 187 188 189<br /> 190<p> 191blah blah 192</p> 193 194<p>intermediate text</p> 195 196<more> 197HTML 198</more> 199 200some text 201 202<h1 id="TESTING-URLs-hyperlinking">TESTING URLs hyperlinking</h1> 203 204<p>This is an href link1: http://example.com</p> 205 206<p>This is an href link2: http://example.com/foo/bar.html</p> 207 208<p>This is an email link: mailto:foo@bar.com</p> 209 210<pre><code> This is a link in a verbatim block <a href="http://perl.org"> Perl </a></code></pre> 211 212<h1 id="SEE-ALSO">SEE ALSO</h1> 213 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> 215 216<h1 id="POD-ERRORS">POD ERRORS</h1> 217 218<p>Hey! <b>The above document had some coding errors, which are explained below:</b></p> 219 220<dl> 221 222<dt id="Around-line-45">Around line 45:</dt> 223<dd> 224 225<p>You can't have =items (as at line 49) unless the first thing after the =over is an =item</p> 226 227</dd> 228</dl> 229 230 231</body> 232 233</html> 234 235 236