Message6995
> when the option is set to true. Christof, would:
>
> renderingConfig: {singleLineBreaks: {%
config.MARKDOWN_BREAK_ON_NEWLINE %} }
>
> work? I assume I am missing something as we want the strings "false"
> and "true" here. I am not sure what value is produced by
> config.MARKDOWN_BREAK_ON_NEWLINE maybe 0/1. (If this technique works
> it is nicer than how I have been modifying javascript with TAL.)
there are a few ways you can do that with jinja2
{% if config.MARKDOWN_BREAK_ON_NEWLINE %}true{% else %}false{% endif
%}
is probably the most basic one, but you could also do something like
{{ config.MARKDOWN_BREAK_ON_NEWLINE and 'true' or 'false' }}
looks like at the moment we get 0/1 for the string value of the option.
Just wondering... maybe we shouldn't rely on the string value being '0'
or '1' |
|
Date |
User |
Action |
Args |
2020-10-24 23:53:01 | cmeerw | set | messageid: <1603583581.49.0.764545571147.issue2551094@roundup.psfhosted.org> |
2020-10-24 23:53:01 | cmeerw | set | recipients:
+ cmeerw, rouilj, ced |
2020-10-24 23:53:01 | cmeerw | link | issue2551094 messages |
2020-10-24 23:53:01 | cmeerw | create | |
|