Indent with tabs, align with spaces: this is what smart-indent helps you with.
Whenever you press enter, smart-indent will make sure the new line will match the indentation and alignment of the previous line.
The above shows HTML and JS examples, but it should work with any file type.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.