changed condition for closing lingering divs. fixes #12
Merge pull request #13 from billerby/master

changed condition for closing lingering divs. fixes #12