Skip to content

Commit

Permalink
Pass keep to recursive calls of chevron.renderer.render()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan-Brotherston committed Mar 20, 2021
1 parent bce1793 commit 444b952
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chevron/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 444b952

Please sign in to comment.