Forums / Zen Cart Code Suggestions / Admin HTML newline "fix" for email notifications to admins

Admin HTML newline "fix" for email notifications to admins

Views: 66

Results 1 to 2 of 2
20 Jun 2021, 10:45 PM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Admin HTML newline "fix" for email notifications to admins

This is just a minor code change to make it so that HTML messages sent by the admin system actually incorporate <br> in place of newlines. Currently the messages would just appear as a large run-on paragraph instead of inserting the <br> that I guess would be intended.

I made the following pull request for consideration:

https://github.com/zencart/zencart/pull/4390/commits/08a7ab2fdb20411063055aa5485f1237594cb1c5

20 Jun 2021, 11:05 PM
#2
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Admin HTML newline "fix" for email notifications to admins

In my infinite wisdom (or lack thereof), I didn't realize that this change needed to be made three times. Once when a module is installed, uninstalled, and changed.

The full pull request contains all three.
https://github.com/zencart/zencart/pull/4390