This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
remove typo fix from LaTex.pm, to keep it in sync with CPAN
[perl5.git] / lib / Pod / t / htmlview.t
CommitLineData
d8022526
SB
1#!/usr/bin/perl -w # -*- perl -*-
2
3BEGIN {
4 chdir 't' if -d 't';
5 unshift @INC, '../lib';
6 unshift @INC, '../lib/Pod/t';
7 require "pod2html-lib.pl";
8}
9
d8022526
SB
10use strict;
11use Test::More tests => 1;
12
13convert_n_test("htmlview", "html rendering");
14
d8022526 15__DATA__
a19d7498 16<?xml version="1.0" ?>
d8022526
SB
17<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
18<html xmlns="http://www.w3.org/1999/xhtml">
19<head>
20<title>NAME</title>
a19d7498 21<meta http-equiv="content-type" content="text/html; charset=utf-8" />
d8022526
SB
22<link rev="made" href="mailto:[PERLADMIN]" />
23</head>
24
25<body style="background-color: white">
26
25ff0154 27
d8022526 28<!-- INDEX BEGIN -->
25ff0154
JA
29<div name="index">
30<p><a name="__index__"></a></p>
d8022526
SB
31
32<ul>
33
34 <li><a href="#name">NAME</a></li>
35 <li><a href="#synopsis">SYNOPSIS</a></li>
36 <li><a href="#description">DESCRIPTION</a></li>
53bf329c 37 <li><a href="#methods____other_stuff">METHODS =&gt; OTHER STUFF</a></li>
d8022526
SB
38 <ul>
39
53bf329c
RGS
40 <li><a href="#new__"><code>new()</code></a></li>
41 <li><a href="#old__"><code>old()</code></a></li>
d8022526
SB
42 </ul>
43
44 <li><a href="#testing_for_and_begin">TESTING FOR AND BEGIN</a></li>
45 <li><a href="#testing_urls_hyperlinking">TESTING URLs hyperlinking</a></li>
46 <li><a href="#see_also">SEE ALSO</a></li>
47</ul>
25ff0154
JA
48
49<hr name="index" />
50</div>
d8022526
SB
51<!-- INDEX END -->
52
d8022526
SB
53<p>
54</p>
55<h1><a name="name">NAME</a></h1>
56<p>Test HTML Rendering</p>
57<p>
58</p>
59<hr />
60<h1><a name="synopsis">SYNOPSIS</a></h1>
61<pre>
62 use My::Module;</pre>
63<pre>
64 my $module = My::Module-&gt;new();</pre>
65<p>
66</p>
67<hr />
68<h1><a name="description">DESCRIPTION</a></h1>
69<p>This is the description.</p>
70<pre>
71 Here is a verbatim section.</pre>
72<p>This is some more regular text.</p>
73<p>Here is some <strong>bold</strong> text, some <em>italic</em> and something that looks
74like an &lt;html&gt; tag. This is some <code>$code($arg1)</code>.</p>
75<p>This <code>text contains embedded bold and italic tags</code>. These can
76be nested, allowing <strong>bold and <em>bold &amp; italic</em> text</strong>. The module also
77supports the extended <strong>syntax </strong>&gt; and permits <em>nested tags &amp;
78other <strong>cool </strong></em>&gt; stuff &gt;&gt;</p>
79<p>
80</p>
81<hr />
53bf329c 82<h1><a name="methods____other_stuff">METHODS =&gt; OTHER STUFF</a></h1>
d8022526
SB
83<p>Here is a list of methods</p>
84<p>
85</p>
53bf329c 86<h2><a name="new__"><code>new()</code></a></h2>
d8022526
SB
87<p>Constructor method. Accepts the following config options:</p>
88<dl>
056749dc 89<dt><strong><a name="foo" class="item">foo</a></strong></dt>
4e3bc6ae 90
d8022526 91<dd>
4e3bc6ae 92<p>The foo item.</p>
d8022526 93</dd>
056749dc 94<dt><strong><a name="bar" class="item">bar</a></strong></dt>
4e3bc6ae 95
d8022526 96<dd>
4e3bc6ae 97<p>The bar item.</p>
d8022526
SB
98<p>This is a list within a list</p>
99<ul>
4e3bc6ae
SH
100<li>
101<p>The wiz item.</p>
102</li>
103<li>
104<p>The waz item.</p>
105</li>
106</ul>
056749dc
BD
107</dd>
108<dt><strong><a name="baz" class="item">baz</a></strong></dt>
4e3bc6ae 109
d8022526 110<dd>
4e3bc6ae 111<p>The baz item.</p>
d8022526 112</dd>
4e3bc6ae 113</dl>
d8022526
SB
114<p>Title on the same line as the =item + * bullets</p>
115<ul>
bc75160c 116<li><strong><a name="black_cat" class="item"><code>Black</code> Cat</a></strong>
4e3bc6ae 117
056749dc 118</li>
bc75160c 119<li><strong><a name="sat_on_the" class="item">Sat <em>on</em>&nbsp;the</a></strong>
4e3bc6ae 120
056749dc 121</li>
bc75160c 122<li><strong><a name="mat" class="item">Mat&lt;!&gt;</a></strong>
4e3bc6ae 123
056749dc 124</li>
d8022526
SB
125</ul>
126<p>Title on the same line as the =item + numerical bullets</p>
127<ol>
bc75160c 128<li><strong><a name="cat" class="item">Cat</a></strong>
4e3bc6ae 129
056749dc 130</li>
bc75160c 131<li><strong><a name="sat" class="item">Sat</a></strong>
4e3bc6ae 132
056749dc 133</li>
bc75160c 134<li><strong><a name="mat2" class="item">Mat</a></strong>
4e3bc6ae 135
056749dc 136</li>
d8022526
SB
137</ol>
138<p>No bullets, no title</p>
139<dl>
4e3bc6ae 140<dt>
d8022526 141<dd>
4e3bc6ae 142<p>Cat</p>
d8022526 143</dd>
4e3bc6ae 144<dt>
d8022526 145<dd>
4e3bc6ae 146<p>Sat</p>
d8022526 147</dd>
4e3bc6ae 148<dt>
d8022526 149<dd>
4e3bc6ae 150<p>Mat</p>
d8022526 151</dd>
4e3bc6ae 152</dl>
d8022526
SB
153<p>
154</p>
53bf329c 155<h2><a name="old__"><code>old()</code></a></h2>
d8022526
SB
156<p>Destructor method</p>
157<p>
158</p>
159<hr />
160<h1><a name="testing_for_and_begin">TESTING FOR AND BEGIN</a></h1>
056749dc 161<br />
d8022526
SB
162<p>
163blah blah
164</p><p>intermediate text</p>
165<more>
166HTML
167</more>some text<p>
168</p>
169<hr />
170<h1><a name="testing_urls_hyperlinking">TESTING URLs hyperlinking</a></h1>
171<p>This is an href link1: <a href="http://example.com">http://example.com</a></p>
172<p>This is an href link2: <a href="http://example.com/foo/bar.html">http://example.com/foo/bar.html</a></p>
173<p>This is an email link: <a href="mailto:mailto:foo@bar.com">mailto:foo@bar.com</a></p>
cd9c2b4e
D
174<pre>
175 This is a link in a verbatim block &lt;a href=&quot;<a href="http://perl.org">http://perl.org</a>&quot;&gt; Perl &lt;/a&gt;</pre>
d8022526
SB
176<p>
177</p>
178<hr />
179<h1><a name="see_also">SEE ALSO</a></h1>
180<p>See also <a href="/t/htmlescp.html">Test Page 2</a>, the <a href="/Your/Module.html">the Your::Module manpage</a> and <a href="/Their/Module.html">the Their::Module manpage</a>
8e3df7c8 181manpages and the other interesting file <em class="file">/usr/local/my/module/rocks</em>
d8022526
SB
182as well.</p>
183
184</body>
185
186</html>