Fix length for html/haml view

Signed-off-by: Patrick Kontschak <patrick.kontschak@gmail.com>