You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrated issue, originally created by Bérenger Enselme (@benselme)
This is using CPython 3.6.1
from mako.template import Template
if __name__ == '__main__':
s = Template("""aaaa<%block name="bodi"></%block>bbbb""").render()
assert s == 'aaaabbbb' # success
s = Template("""aaaa<%block name="body"></%block>bbbb""").render()
assert s == 'aaaabbbb' # failure, s == '\n '
The text was updated successfully, but these errors were encountered:
this is expected behavior. "body" is a pre-existing name with special behavior and is documented here. It is possible people use it as a "block" name intentionally.
Migrated issue, originally created by Bérenger Enselme (@benselme)
This is using CPython 3.6.1
The text was updated successfully, but these errors were encountered: