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

This commit is contained in:
Dennis Ushakov
2018-07-12 09:16:46 +01:00
parent 6b26352db0
commit 57c5f5552f

View File

@@ -260,7 +260,7 @@ public class XmlTagInsertHandler implements InsertHandler<LookupElement> {
if (toInsertCDataEnd) template.addTextSegment("\n]]>");
if ((!(tag instanceof HtmlTag) || !HtmlUtil.isSingleHtmlTag(tag, true)) && tag.getAttributes().length == 0) {
if ((!(tag instanceof HtmlTag) || !HtmlUtil.isSingleHtmlTag(tag, true)) && indirectRequiredAttrs == null) {
if (WebEditorOptions.getInstance().isAutomaticallyInsertClosingTag()) {
final String name = descriptor.getName(tag);
if (name != null) {