Edgewall Software

Opened 17 years ago

Last modified 9 years ago

#62 closed defect

Genshi text template deletes blank lines — at Initial Version

Reported by: talin@… Owned by: cmlenz
Priority: minor Milestone: 0.3.5
Component: Template processing Version: 0.3.3
Keywords: text template Cc: martin.kaffanke@…

Description

In the example below, there is a blank line in the original template between "hello" and "world", however the output has them on adjacent lines. This makes it hard to do things like SMTP messages, where a blank line is required between the headers and the body :)

from genshi.template import TextTemplate? template = """hello

... ... world"""

print TextTemplate?( template ).generate()

hello world

Change History (0)

Note: See TracTickets for help on using tickets.