Formatter pre test

Fixed second portion of ticket with taking out extra new line. Also included testing of replacing four spaces with tab.

https://issues.liferay.com/browse/LPS-34069