Quantcast
Channel: Mako: Ticket Query
Viewing all articles
Browse latest Browse all 38

#150: Line ending handling broken on Win32 platform

$
0
0

Version 0.3.4

Line ending handling of templates is broken on Windows:

For each "CR-LF" sequence in the template file you get "CR-CR-LF" in the output.

This only happens when using the filename argument to Template.init(), not if the text argument is used to supply the template.

I think this is due to opening file with mode "rb" where mode "rU" should be used to automatically convert line endings to the correct internal format on all platforms.


Viewing all articles
Browse latest Browse all 38

Trending Articles