Skip to content

  not rendering as expected in newer versions of this library? #464

@unicornsoftwareinc

Description

@unicornsoftwareinc

Node.js version:
20.0.0

OS version:
macOS 14.3.1

Description:
&nbsp ; doesn't appear to be rendering "correctly" as a space character with pug templates. Instead it renders as "&nbsp ;". 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 "&nbsp ;" inside this ticket because GitHub actually renders it as the non breaking space character.

Actual behavior:
&nbsp ; renders as as "&nbsp ;" when using it inside pug templates. For example, if you have the following inside a pug template: "p(style='font-size: 12px;') &nbsp ;", in the actual rendered email you will see "&nbsp ;" instead of a space character.

Expected behavior:
&nbsp ; 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;') &nbsp ;" and send a test email. In the received email, you will see "&nbsp ;" instead of a space character in the rendered paragraph.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions