xhtml2pdf icon indicating copy to clipboard operation
xhtml2pdf copied to clipboard

Nested paragraphs suppress numbers/bullets in lists

Open tonysyu opened this issue 7 years ago • 3 comments

When an item in a ordered or unordered list have contents wrapped in a paragraph tag, the xhtml2pdf output displays those items without numbers/bullets in the output. Below is an example reproducing the issue, where the first item displays with a number, and the second (which has contents wrapped in a paragraph tag) does not:

<!DOCTYPE html>
<html>
    <body>
        <ol>
            <li>Numbered item with no paragraph tag</li>
            <li><p>Item with paragraph tag has no number</p></li>
        </ol>
    </body>
</html>

Are there any work-arounds to this issue? FWIW, the content is wrapped in a paragraph tag by the rich-text editor that we're using (CKEditor).

tonysyu avatar Jun 18 '18 18:06 tonysyu

Good Morning! I had a similar problem. In my case I needed to convert a field that has tags and format properly. Example: image image The solution very simple. image

leaojn avatar Sep 21 '18 12:09 leaojn

Still an issue, any ideas?

naz01101011 avatar Nov 14 '20 12:11 naz01101011

This is still problematic. Would be great to get some pointers

lawya-cm avatar Mar 24 '21 18:03 lawya-cm