From 87cb8feb7430a31067811d5bdb3d1e00356549df Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Thu, 2 Aug 2012 15:57:20 +0400 Subject: [PATCH] IDEA-89620 Collapse inline CSS: add option to disable - fix attribute collapsing for empty tags --- xml/impl/src/com/intellij/lang/xml/XmlFoldingBuilder.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xml/impl/src/com/intellij/lang/xml/XmlFoldingBuilder.java b/xml/impl/src/com/intellij/lang/xml/XmlFoldingBuilder.java index 3deba9d7a948..a51fc7f5b4c9 100644 --- a/xml/impl/src/com/intellij/lang/xml/XmlFoldingBuilder.java +++ b/xml/impl/src/com/intellij/lang/xml/XmlFoldingBuilder.java @@ -77,9 +77,8 @@ public class XmlFoldingBuilder implements FoldingBuilder, DumbAware { } protected void addElementsToFold(List foldings, XmlElement tag, Document document) { - if (addToFold(foldings, tag, document)) { - doAddForChildren(tag, foldings, document); - } + addToFold(foldings, tag, document); + doAddForChildren(tag, foldings, document); } protected void doAddForChildren(final XmlElement tag, final List foldings, final Document document) {