Edgewall Software

Changes between Version 32 and Version 33 of TracDev/PortingFromGenshiToJinja


Ignore:
Timestamp:
Jan 6, 2017, 7:20:03 PM (7 years ago)
Author:
Christian Boos
Comment:

second #Tipsandtricks, how to produce indentation

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PortingFromGenshiToJinja

    v32 v33  
    566566
    567567 - when you need to output a plain "#" character at the beginning of a line, this will be parsed as a line statement; the trick here is to use an empty inline comment as a prefix: `{##}# ...` (see [61e8d9ec/cboos.git])
    568 
     568 - when you need to output indented text, this can be made difficult due to our `lstrip_block` configuration setting; you can work around this by embedding Python strings with the exact whitespace content you need in variable expressions: `    ${"\t  "}` (see [0fdef480/cboos.git])
    569569
    570570== Changes in the controllers ==