void () { final HtmlCodeStyleSettings settings = getHtmlSettings(); settings.HTML_NEWLINE_BEFORE_FIRST_ATTRIBUTE = CodeStyleSettings.HtmlTagNewLineStyle.WhenMultiline; settings.HTML_NEWLINE_AFTER_LAST_ATTRIBUTE = CodeStyleSettings.HtmlTagNewLineStyle.WhenMultiline; String source = """ <div class="singleline" foo="1" bar="2"/> <div class="singleline"></div> <div class="multiline" foo="1" bar="2"></div> <div class="selfClosingMultiline" foo="1" bar="2" /> <!--void tags--> <input type="button" value="Ok"> <br> """; doTextTest( source, """ <div class="singleline" foo="1" bar="2"/> <div class="singleline"></div> <div class="multiline" foo="1" bar="2" ></div> <div class="selfClosingMultiline" foo="1" bar="2" /> <!--void tags--> <input type="button" value="Ok"> <br> """); settings.HTML_SPACE_INSIDE_EMPTY_TAG = true; doTextTest( source, """ <div class="singleline" foo="1" bar="2" /> <div class="singleline"></div> <div class="multiline" foo="1" bar="2" ></div> <div class="selfClosingMultiline" foo="1" bar="2" /> <!--void tags--> <input type="button" value="Ok"> <br> """); }