<li> tags followd by <span> results in empty list with WriteHTMLCell
PHP class for PDF
Brought to you by:
nicolaasuni
Writing the HTML code below with WriteHTMLCell, should result in a numbered list, but because the
Results are the same wit unordered and ordered lists.
The HTML:
<font color="cmyk(0, 0, 0, 100)"> <span style="letter-spacing:0mm;"> <div> <div style="text-align: justify;"> <b> <font style="font-size: 30pt;">L</font> <span style="font-size: 7pt;">orem ipsum dolor sit amet. Molestie </span> <font color="cmyk(0, 100, 100, 0)" style="font-size: 7pt;">Ad Fundum</font> <span style="font-size: 7pt;"> elit id férmentum, montes quisque, vel ultricies in nulla. Ad lacinia amet diam, quam ante eros dolor tortor dictum justo.</span> </b> </div> <div style="font-size: 7pt;"> <ol> <li style="text-align: justify;"> <span style="font-size: 7pt;">Elit nunc magna</span> </li> <li style="text-align: justify;"> <span style="font-size: 7pt;">ipsum nec sed nam semper</span> </li> <li style="text-align: justify;"> <span style="font-size: 7pt;">leo pulvinar fringilla at nec augue.</span> </li> </ol> </div> <div style="text-align: justify; font-size: 7pt;">Ultrices pellentesque ut egestas, etiam quis, tincidunt in, duis sit, nullam lorem. Luctus tincidunt nec vivamus amet, elit congue. Sed proin a diam, tellus consequat justo orci quis. Morbi vestibulum fermentum venenatis, quam vestibulum ligula augue eget.</div> <div style="text-align: justify; font-size: 7pt;"> <br> </div> <div style="text-align: justify; font-size: 7pt;">Nam consequat placerat nostra elit accumsan, placerat eu auctor. Wisi et etiam senectus libero sodales turpis, sapien semper, aliquam nunc mauris nunc, lorem aenean justo ligula facilisi purus, facilisis justo. Lorem nonummy odio. Sit ut, nec penatibus in augue. Sit ultrices amet, duis imperdiet ligula rutrum magna sit, lorem nascetur purus nam in ad vel.</div> <div style="text-align: justify; font-size: 7pt;"> <br> </div> <div style="text-align: justify; font-size: 7pt;">Nam consequat placerat nostra elit accumsan, placerat eu auctor. Wisi et etiam senectus libero sodales turpis, sapien semper, aliquam nunc mauris nunc, lorem aenean justo ligula facilisi purus, facilisis justo. Lorem nonummy odio. Sit ut, nec penatibus in augue. Sit ultrices amet, duis imperdiet ligula rutrum magna sit, lorem nascetur purus nam in ad vel.</div> </div> </span> </font>
Sorry, text above should read:
Writing the HTML code below with WriteHTMLCell, should result in a numbered list, but because the <li> tag is followed by a <span> tag that styles the text individually from the <li> tag, it results in an empty list. It seems that any tag that is followed by <li> is ignored, and thus the values.
Results are the same wit unordered and ordered lists.
The HTML:
I am unable o reproduce your issue. Please be sur you are using the latest TCPDF version and ask help on The Help forum for further information.