More fixes for #15

Formatting issues for #15 has resolved. Now only multiple consecutive non-block elements will get linebreak.