Fixes #1651. Issue was with formatting the html output.
Merge pull request #1661 from AndroidSFV/fix1651

Resolves #1651