CC: | pod-people [...] perl.org |
Subject: | `=item 1. Text` Doesn't Produce Ordered List Item |
Date: | Mon, 19 Jul 2010 21:55:33 -0700 |
To: | bug-pod-simple [...] rt.cpan.org |
From: | David E. Wheeler <david [...] kineticode.com> |
This Pod:
=over
=item 1 Item 1
=item 2 Item 2
=back
Yields this output from Pod::Simple:
% perldoc -MPod::Simple::XHTML list.pod
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<h1 id="Title">Title</h1>
<dl>
<dt>1 Item 1</dt>
<dd>
</dd>
<dt>2 Item 2</dt>
<dd>
</dd>
</dl>
</body>
</html>
A definition list isn't what I would expect. If I use an asterisk instead of numbers (e.g., `=item * some text`), I'd get an unordered list. So why shouldn't `=item 1 some text` give me an ordered list? FWIW, pod2html does.
So should `item 1 some text` be an ordered list item, as suggested output by pod2html, or a definition list as currently implemented by Pod::Simple? I think the former.
Thoughts?
Thanks,
David