Edgewall Software

Changes between Initial Version and Version 1 of Ticket #62

Show
Ignore:
Timestamp:
10/11/06 00:56:42 (8 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}}}