Ticket #62 (closed defect: fixed)
Genshi text template deletes blank lines
| 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 (last modified by cmlenz) (diff)
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 >>>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
