noahmorrison / chevron

A Python implementation of mustache
MIT License
486 stars 52 forks source link

Fix indentation when iterating in scope #60

Closed masell closed 3 years ago

masell commented 4 years ago

I think related to this: https://github.com/noahmorrison/chevron/issues/49

When iterating over a scope in a partial the indentation is forgotten.

Template in testcase.

Expected output:

foobar is indented 4 spaces, the others 5.

    foobar
     foo
     bar
     baz

Current actual output:

foobar is indented 4 spaces, foo 5, the rest 1.

    foobar
     foo
 bar
 baz
coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 8bcab55586a99461eb65f8f5b2204e74074ec1c2 on masell:master into 78f1a384eddef16906732d8db66deea6d37049b7 on noahmorrison:master.

noahmorrison commented 3 years ago

merged