django-easy-pdf
django-easy-pdf copied to clipboard
List style type not displaying
I'm experiencing a problem where the list style type of a list item is not rendered if there is a block element inside the list item.
For example, the following list will render fine:
<ul>
<li>an item</li>
</ul>
But this list will render without a bullet point (or whatever the list-style-type was defined as):
<ul>
<li><p>an item</p></li>
</ul>
If the block element is not the first thing in the list, it works fine. This example renders as expected:
<ul>
<li>
an item
<p>a paragraph</p>
</li>
</ul>
But, oddly, as soon as a non-block level element is added, it breaks again. The following list will have no bullet:
<ul>
<li>
an <em>item</em>
<p>a paragraph</p>
</li>
</ul>
I've experienced this with both xhtml2pdf installed from pypi and the current git master.