django-easy-pdf icon indicating copy to clipboard operation
django-easy-pdf copied to clipboard

List style type not displaying

Open pigmonkey opened this issue 9 years ago • 0 comments

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.

pigmonkey avatar May 21 '15 18:05 pigmonkey