Talesoft / tale-jade

A complete and fully-functional implementation of the Jade template language for PHP
http://jade.talesoft.codes
MIT License
88 stars 10 forks source link

Sub-Block Expansion doesnt outdent correctly #1

Closed TorbenKoehn closed 9 years ago

TorbenKoehn commented 9 years ago

Currently, expanding an element inside an expanding element won't return the outdent to the correct parent anymore


nav: ul
    li: a(href='#')
    li: a(href='#')
div

The div will be appended to the ul, while it should actually come right after it

The Problem lies in the Tale\Jade\Parser in the handleIndent, handleNewLine, handleOutdent and handleSub methods.

TorbenKoehn commented 9 years ago

This has been fixed in #7