BerndGabriel / HtmlViewer

The well-known Delphi/Lazarus HtmlViewer/FrameViewer
Other
398 stars 147 forks source link

Fixed ordered-list render bug #340

Open ortegaalfredo opened 10 months ago

ortegaalfredo commented 10 months ago

Ordered lists display misaligned by one row too low. This fixes them.

BerndGabriel commented 10 months ago

Thanks for that fix. Could you please post an html example file that demonstrates the effect of the fix? The enumerations in demo.html look correct. Which compiler and operation system are you using?

ortegaalfredo commented 10 months ago

Yes, here's an html example. I'm using Lazarus 3.0.0, FPC 3.2.2 and Ubuntu (but the bug happens in Windows too):

<html><head><meta charset="UTF-8"></head><style>body{background-color:white;}table{width:100%;margin:0 auto;} td{width:100%;word-wrap:break-word;}pre{}</style><body><table><tr style="align: center;background-color: #EBF5FB;padding: 0px"><td style="border: none;"><pre>write a list of 10 words</pre></td></tr><tr><td style="border: none; padding: 50px;"><ol>
<li>Abundance</li>
<li>Serenity</li>
<li>Ingenuity</li>
<li>Resilience</li>
<li>Empathy</li>
<li>Curiosity</li>
<li>Vitality</li>
<li>Authenticity</li>
<li>Gratitude</li>
<li>Harmony</li>
</ol>
</td></tr><tr style="color:#808080;font-size: 80%;"><td><SYSTEM> You selected "/home/guest/test.html" to save your file.</td></tr></table></body></html>
BerndGabriel commented 9 months ago

340 What's wrong here?