html generator bails on syntax / structure problems