Revert "close tag on explicit > or / if there are no required attributes"

This reverts commit 57c5f55
This commit is contained in:
Dennis Ushakov
2018-07-12 13:55:53 +01:00
parent 2b991971ba
commit 8c404e9e6b
@@ -260,7 +260,7 @@ public class XmlTagInsertHandler implements InsertHandler<LookupElement> {
if (toInsertCDataEnd) template.addTextSegment("\n]]>");
if ((!(tag instanceof HtmlTag) || !HtmlUtil.isSingleHtmlTag(tag, true)) && indirectRequiredAttrs == null) {
if ((!(tag instanceof HtmlTag) || !HtmlUtil.isSingleHtmlTag(tag, true)) && tag.getAttributes().length == 0) {
if (WebEditorOptions.getInstance().isAutomaticallyInsertClosingTag()) {
final String name = descriptor.getName(tag);
if (name != null) {