-
Notifications
You must be signed in to change notification settings - Fork 339
Description
Node.js version:
20.0.0
OS version:
macOS 14.3.1
Description:
  ; doesn't appear to be rendering "correctly" as a space character with pug templates. Instead it renders as "  ;". This appears to work as I would expect in version 6.0.0 of this library but upon updating recently to 12.0.0, it is no longer working as it used to.
Please note: I have inserted an extra space before the semi-colon of the "  ;" inside this ticket because GitHub actually renders it as the non breaking space character.
Actual behavior:
  ; renders as as "  ;" when using it inside pug templates. For example, if you have the following inside a pug template: "p(style='font-size: 12px;')   ;", in the actual rendered email you will see "  ;" instead of a space character.
Expected behavior:
  ; renders as as non-breaking space character.
Code to reproduce:
On version 12.0.0 (and perhaps other earlier versions outside of 6.0.0), render a pug template with the following: "p(style='font-size: 12px;')   ;" and send a test email. In the received email, you will see "  ;" instead of a space character in the rendered paragraph.
Thanks