fix typo in html indent + make br/input handling case insensitive

the missing 'endif' caused the logic to abort at that point with no
error message, so br/input handling has been broken for awhile.

fixes #285