Fix typo and mixed indents

I found a typo in generated html.
And I found that soft and hard tabs are mixed.