Edgewall Software

Changes between Initial Version and Version 1 of Ticket #62


Ignore:
Timestamp:
Oct 11, 2006, 12:56:42 AM (18 years ago)
Author:
cmlenz
Comment:

(fixed description)

Can you please try:

>>> stream = TextTemplate(template).generate()
>>> print stream.render('text', strip_whitespace=False)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62

    • Property Version changed from 0.2 to 0.3.1
    • Property Component changed from General to Template processing
  • Ticket #62 – Description

    initial v1  
    11In 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 :)
    22
     3{{{
    34>>> from genshi.template import TextTemplate
    45>>> template = """hello
     
    910world
    1011>>>
     12}}}