mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
close tag on explicit > or / if there are no required attributes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user