Aymkdn / html-to-pdfmake

This module permits to convert HTML to the PDFMake format
https://aymkdn.github.io/html-to-pdfmake/index.html
MIT License
545 stars 88 forks source link

Adding Extra Space in-between #213

Closed HtetAungLinn-Go5 closed 4 months ago

HtetAungLinn-Go5 commented 4 months ago

Screenshot 2567-05-14 at 14 08 48

When converting to pdf object, I am encountering that extra object with text: " " was created which cause the space in between list and text.

Aymkdn commented 4 months ago

Can you share the HTML code that you use, please?

HtetAungLinn-Go5 commented 4 months ago
<div style="margin:0;padding:0">Description --- Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word.</div>
<ol>
<li>The one</li>
<li>The two</li>
<li>The three</li>
<li>The four</li>
<li>The five</li>
<li>The six</li>
<li>The seven</li>
</ol>
Aymkdn commented 4 months ago

Thanks for sharing.

I found the problem, and I've just released v2.5.8. Make sure to keep using the removeExtraBlanks:true option.

HtetAungLinn-Go5 commented 4 months ago

Thanks for your support.