ajl52 has asked for the wisdom of the Perl Monks concerning the following question:
My code contains POD to provide first-level documentation (higher-level is in tech documents under text processor).
For instance, I use =over, =item 1 ..., =back to describe arguments to functions.
Sometimes, I insert notes or remarks about what could be otherwise difficult to understand at first sight. My structure is:
Notes: =over =item Text of the note =back
Please note that the =item stuff is empty because, in this case, I don't like the default bold rendering of the "title" item line.
This POD is translated into HTML through pod2html. Browsers display it as intended.
Now I want these HTML pages to look like the rest of the web site, i.e. I want to add headers, fancy titles and footers, plus various links. This is a sugar job for XML::Parser. But it complains about mismatched tags.
I have traced it back to my empty =item line which is translated as a single <dt> without closing </dt> tag.
Translation is correct when =item stuff is not empty.
Is my =item usage forbidden by POD rules?
Can this be corrected in pod2html?
In the meantime, how can I workaround this shortcoming?
Thanks for the tips.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POD translation to HTML bug?
by tobyink (Canon) on Dec 05, 2013 at 11:06 UTC | |
by ajl52 (Novice) on Dec 05, 2013 at 14:11 UTC | |
by taint (Chaplain) on Dec 05, 2013 at 14:27 UTC | |
|
Re: POD translation to HTML bug? (pod2html)
by Anonymous Monk on Dec 06, 2013 at 04:50 UTC | |
by ajl52 (Novice) on Dec 06, 2013 at 11:24 UTC | |
by Anonymous Monk on Dec 06, 2013 at 11:35 UTC | |
by ajl52 (Novice) on Dec 07, 2013 at 14:19 UTC | |
by Anonymous Monk on Dec 07, 2013 at 23:19 UTC |