Rendering An Ical .ics File Using Django: Fixing Incorrect Newlines
I'm using Django's render_to_response to create an .ics file on the fly for people to download. The raw content of this .ics file is fine, and validates when I use this tool. Howev
Solution 1:
render_to_response
is a shortcut for Template.render(Context)
. If you called Template.render
yourself, it would return a string. So you could then call string.replace('\n', '\r\n')
.
Post a Comment for "Rendering An Ical .ics File Using Django: Fixing Incorrect Newlines"