The source code of static files generated by hexo is indented and typeset confusedly.

the first picture is the generated html source code, and the second is the generated html file template file.
but the source code typesetting is normal in the template file. After generating html, the indentation of the source code is confused. The width of the table key is set to 2, and the generated Html source code is indented to 4. There are also extra blank lines on body, is there any way to solve it?


just don't use Tab, let the editor automatically convert Tab to spaces when editing template files. In fact, it's a good habit to convert Tab to spaces.

Menu