From 8c404e9e6bbfb8afa79843cf5e60c54ffdd49358 Mon Sep 17 00:00:00 2001 From: Dennis Ushakov Date: Thu, 12 Jul 2018 13:47:39 +0100 Subject: [PATCH] Revert "close tag on explicit > or / if there are no required attributes" This reverts commit 57c5f55 --- .../intellij/codeInsight/completion/XmlTagInsertHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/impl/src/com/intellij/codeInsight/completion/XmlTagInsertHandler.java b/xml/impl/src/com/intellij/codeInsight/completion/XmlTagInsertHandler.java index 089f746fcb55..15968704f92f 100644 --- a/xml/impl/src/com/intellij/codeInsight/completion/XmlTagInsertHandler.java +++ b/xml/impl/src/com/intellij/codeInsight/completion/XmlTagInsertHandler.java @@ -260,7 +260,7 @@ public class XmlTagInsertHandler implements InsertHandler { 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) {