c# - AppSettings string new lines not recognised after numbers -
i have following email signature stored in appsettings:
<add key="emailsignature" value=" smokey bear forest manager level 7 tree house jellystone park ddi 04 548 6457 • m 021 456 7854 • f 04 548 456" />
the problem comes out in email looking like:
smokey bear forest manager level 7 tree housejellystone parkddi 04 548 6457 • m 021 456 7854 • f 04 548 456
after experimentation i've found it's caused numbers. 7 in "level 7" causing jellystone park on same line. likewise other numbers cause further problem if there further lines.
anyone know how fix this? need escape character?
edit:
so i've found if use 7
in place of 7 fixes problem caused 7. isn't desirable because makes data hard read , edit.
a better solution might have sort of identifying key in appsettings, , having static string in code can use set email signature.
i imagine if want set email signature in appsettings might want change based on level?
Comments
Post a Comment