node_mailer icon indicating copy to clipboard operation
node_mailer copied to clipboard

New lines rendering as spaces in mustache templates

Open brandskore opened this issue 12 years ago • 10 comments

For whatever reason, text files that are parsed by mustache are rendering new lines as spaces on output. When I parse files using some other mustache implementation (Hogan.js, e.g.), this does not occur.

brandskore avatar Jan 04 '12 21:01 brandskore

+1 (or I forgot to post this issue with my actual account)

joshsmith avatar Jan 04 '12 21:01 joshsmith

+1

coen-hyde avatar Feb 06 '12 21:02 coen-hyde

+1

danielmahon avatar Feb 08 '12 20:02 danielmahon

+1

topliceanu avatar Feb 26 '12 07:02 topliceanu

You can circumvent this by using <br/> to mark newlines.

topliceanu avatar Feb 26 '12 07:02 topliceanu

+1

tglines avatar Mar 05 '12 18:03 tglines

there is another issue on this matter: https://github.com/Marak/node_mailer/issues/32 that explains this behavior.

topliceanu avatar Mar 06 '12 17:03 topliceanu

Ahh, that makes it make sense ... thanks @topliceanu

tglines avatar Mar 07 '12 06:03 tglines

+1

turingmachine avatar May 23 '19 13:05 turingmachine

@topliceanu Do we know if there is a workaround for this?

cmiller-r7 avatar Jul 10 '20 20:07 cmiller-r7