Skip to content

content formatting with \n  #563

Description

@qaturner

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions