6
ZioCain
15d

I might be bad at indenting, ok, but THIS...
THIS is one of the worst thing I've ever seen for HTML

Comments
  • 0
    I would keep class on the <i line, and then indent the aria and click one time. Then put the ending </i> on the (click) line.
  • 2
    Aren't there tools to reformat the code as part of precommit hooks or a build step to enforce this?
  • 0
    I do basically the same, but I indent the attributes.
  • 0
    This is good formatting for XML as they are for storing data and this makes it Readable, for HTML it's not very useful.

    Are you sure you have set correct formatting mode?
  • 1
    @theabbie I'm using atom, I don't have a format to set I guess
  • 0
    Using react and jsx its a pretty meaningful indentation
Add Comment