Menu

#236 added whitespace when using tags

v2.30
open
nobody
None
5
2023-06-19
2023-05-25
No

We have a scenario where in we convert HTML files (which uses htmlcleaner) to PDF. We noticed that if we for example try to use tag on a word then it adds whitespace before and after that word. For example "(Hello)" after PDF conversion it becomes "( Hello )". This behavior only happens when there is a character before and after the word but if there is an existing whitespace already then it does not add another whitespace, just preserves it.

Discussion

  • Joseph Andres Jr

    "<b>Hello</b>"
    

    becomes

    " **Hello** "
    

    using PrettyHtmlSerialiser

     
  • Scott Wilson

    Scott Wilson - 2023-06-19
    • Group: v2.29 --> v2.30
     

Log in to post a comment.

MongoDB Logo MongoDB