bdtc / lwarp

The LaTeX lwarp package — Convert LaTeX to HTML.
https://ctan.org/pkg/lwarp
31 stars 0 forks source link

Formatting adds unwanted text spaces #22

Closed marekkolman closed 5 months ago

marekkolman commented 5 months ago

Lwarp adds whitespaces when text is formatted

LaTeX:

we are in a (\textit{multi--currency}) world

Rendered PDF -> no whitespace around multi-currency: CleanShot 2024-03-26 at 21 08 24

Rendered HTML -> contains whitespace around multi-currency: CleanShot 2024-03-26 at 21 09 00 I highlighted with a cursor that it is actually a true whitespace.

bdtc commented 5 months ago

Hi, No problem seen when I test it here. What version of lwarp do you have? And what font are you using? Thanks

marekkolman commented 5 months ago

Hello, thanks for the prompt reply! No issue with Lwarp eventually, apologies. But if you didn't check it, I'd have been still running around.

I do post processing of the HTML via python's BeautifulSoup library this library added the whitespace when prettify() function was called on Lwarp's HTML.