From: Dylan Brotherston <22044664+Dylan-Brotherston@users.noreply.github.com> Date: Sat, 20 Mar 2021 15:57:51 +0000 (+1100) Subject: Pass `keep` to recursive calls of `chevron.renderer.render()` X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=444b952701c02d4bf85e350c4f6ae307eb9c7b5d;p=chevron.git Pass `keep` to recursive calls of `chevron.renderer.render()` --- diff --git a/chevron/renderer.py b/chevron/renderer.py index c0cff7b..9e38a2d 100644 --- a/chevron/renderer.py +++ b/chevron/renderer.py @@ -292,7 +292,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache', padding=padding, def_ldel=def_ldel, def_rdel=def_rdel, scopes=data and [data]+scopes or scopes, - warn=warn)) + warn=warn, keep=keep)) if python3: output += rend @@ -329,7 +329,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache', partials_ext=partials_ext, partials_dict=partials_dict, def_ldel=def_ldel, def_rdel=def_rdel, - warn=warn) + warn=warn, keep=keep) if python3: output += rend @@ -364,7 +364,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache', partials_dict=partials_dict, def_ldel=def_ldel, def_rdel=def_rdel, padding=part_padding, scopes=scopes, - warn=warn) + warn=warn, keep=keep) # If the partial was indented if left.isspace():