Issue Summary
setting content with a value of
'something\nsomething'
will not format correctly where as
'something\n something'
will format correctly in the received email.
Steps to Reproduce
1, Set up a mail object assigning the content as follows:
content=Content('text/plain','something\nsomething')
2. Send mail
I was creating an email whose contents is created by concatenating a string from popping off a list variable. I spent a lot of time comparing the difference of when I hardcoded the value of content versus using my code. Only after viewing debug printing of the content body was I able to discern this subtlety.
Technical details:
- sendgrid-python Version: 5.3.0
- Python Version: 3.5
Issue Summary
setting content with a value of
'something\nsomething'
will not format correctly where as
'something\n something'
will format correctly in the received email.
Steps to Reproduce
1, Set up a mail object assigning the content as follows:
content=Content('text/plain','something\nsomething')
2. Send mail
I was creating an email whose contents is created by concatenating a string from popping off a list variable. I spent a lot of time comparing the difference of when I hardcoded the value of content versus using my code. Only after viewing debug printing of the content body was I able to discern this subtlety.
Technical details: