Stefaan Himpe
2011-12-15 22:36:53 UTC
Hello all,
With a template like this:
if condition:
....${code_body}
where code_body will be replaced with a multiline string,
is there a way to have the complete code_body use the indentation as
defined in the template?
Example:
code_body = "statement1\nstatement2\nstatement3\n"
instead of this result
if condition:
....statement1
statement2
statement3
i would like to get:
if condition:
....statement1
....statement2
....statement3
Am I overlooking the obvious?
Best regards,
Stefaan.
With a template like this:
if condition:
....${code_body}
where code_body will be replaced with a multiline string,
is there a way to have the complete code_body use the indentation as
defined in the template?
Example:
code_body = "statement1\nstatement2\nstatement3\n"
instead of this result
if condition:
....statement1
statement2
statement3
i would like to get:
if condition:
....statement1
....statement2
....statement3
Am I overlooking the obvious?
Best regards,
Stefaan.
--
You received this message because you are subscribed to the Google Groups "Mako Templates for Python" group.
To post to this group, send email to mako-***@googlegroups.com.
To unsubscribe from this group, send email to mako-discuss+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mako-discuss?hl=en.
You received this message because you are subscribed to the Google Groups "Mako Templates for Python" group.
To post to this group, send email to mako-***@googlegroups.com.
To unsubscribe from this group, send email to mako-discuss+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mako-discuss?hl=en.