baskerville / plato

Document reader
Other
1.26k stars 105 forks source link

html engine bug: space between adjacent <em>...</em> <em>...</em> tags removed #245

Closed thataboy closed 2 years ago

thataboy commented 2 years ago

When there are adjacent <em>...</em> <em>...</em> or <strong>...</strong> <strong>...</strong> or some mixture of the two, the space between them is removed. See screenshot

<html>
<head>
<title>test</title>
</head>
<body>
<p>
Lorem ipsum <strong>hello</strong> <strong>world</strong> dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p>
Lorem ipsum <em>hello</em> <em>world</em> dolor sit amet, <em>consectetur</em> adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p>
Lorem ipsum <strong>hello</strong> <em>world</em> dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>

</body>
</html>

screenshot-20220622_182212 test.html.txt