Autogenerate HTML inserts page numbering with paragraph elements within lists. Paragraph (<p></p>
) elements are not allowed within unordered (or ordered) lists.
For example the following list coding:
/L
A list item
{page break}
Another item
{page break}
L/
results in the following coding:
<ul><li>A list item</li> <p><span class="pagenum"><a name="Page_1" id="Page_1">[Pg 1]</a></span></p> <li>Another item</li> <p><span class="pagenum"><a name="Page_2" id="Page_2">[Pg 2]</a></span></p></ul>
The desired outcome would be:
<ul><li>A list item<span class="pagenum"><a name="Page_1" id="Page_1">[Pg 1]</a></span></li> <li>Another item</li> <span class="pagenum"><a name="Page_2" id="Page_2">[Pg 2]</a></span> </ul>
Steps to duplicate are:
Menu>Fixup>HTML Generator & Checks...
Click on Autogenerate HTML
Thanks,
Rick
Anonymous
Paragraph elements are allowed inside list items, as are span elements.
Neither paragraph elements nor span elements are allowed in lists outside of list elements.
What you call desired outcome is invalid both in XHTML 1.0 Strict and in HTML 4.01 Transitional, so no, that's not quite what's desired.
The attached file has e.g. pg_num.png, which produces:
and chap.png, which produces:
In both cases the page number (and whatever else) should come after the , e.g.
I'm updating the title to better reflect the problem.
Last edit: hannne 2016-07-16
Your analysis is correct where page breaks occur at the end of lists.
Please consider instances where page breaks occur within lists instead of just at the end of a list.