Skip to content

Commit

Permalink
Merge branch 'patch-2' of git://github.com/alanyee/chevron into alany…
Browse files Browse the repository at this point in the history
…ee-patch-2
  • Loading branch information
noahmorrison committed Jan 2, 2021
2 parents 3177f6c + a073987 commit c340760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chevron/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache',
partials_path, partials_ext)

# Find what to pad the partial with
left = output.split('\n')[-1]
left = output.rpartition('\n')[2]
part_padding = padding
if left.isspace():
part_padding += left
Expand Down

0 comments on commit c340760

Please sign in to comment.