Starting with Mako 1.3.1, %% anywhere in input now renders to %. This is a change in behavior from previous releases.
It's unclear to me if this is intended. The documentation says that %% can be used to render a % at the start of a line, but it doesn't explicitly state how %% is handled elsewhere in a line. My first interpretation was that %% elsewhere in a line wouldn't be changed.
Simple reproducing case:
$ pip install mako==1.3.0
...
Successfully installed mako-1.3.0
$ mako-render - <<< foo%%bar
foo%%bar
$ pip install mako==1.3.1
...
Successfully installed mako-1.3.1
$ mako-render - <<< foo%%bar
foo%bar
This is related to #383. From the discussion there, it seems like this was expected to possibly break users, but it's not clear to me if it was expected to break all use of %% not at the start of a line or just %% at the start of a line after whitespace (which I would expect).
Starting with Mako 1.3.1,
%%anywhere in input now renders to%. This is a change in behavior from previous releases.It's unclear to me if this is intended. The documentation says that
%%can be used to render a%at the start of a line, but it doesn't explicitly state how%%is handled elsewhere in a line. My first interpretation was that%%elsewhere in a line wouldn't be changed.Simple reproducing case:
This is related to #383. From the discussion there, it seems like this was expected to possibly break users, but it's not clear to me if it was expected to break all use of
%%not at the start of a line or just%%at the start of a line after whitespace (which I would expect).