Remove ending div markers

Related to issue #486
Merge pull request #501 from Silex/master

Remove ending div markers