mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
keep whitespaces inside inner tags
#WEB-18909 fixed
This commit is contained in:
@@ -143,7 +143,14 @@ public class HtmlPolicy extends XmlFormattingPolicy {
|
||||
|
||||
@Override
|
||||
public boolean keepWhiteSpacesInsideTag(final XmlTag tag) {
|
||||
return checkName(tag, mySettings.HTML_KEEP_WHITESPACES_INSIDE) || "jsp:attribute".equals(tag.getName());
|
||||
XmlTag current = tag;
|
||||
while (current != null) {
|
||||
if (checkName(current, mySettings.HTML_KEEP_WHITESPACES_INSIDE) || "jsp:attribute".equals(current.getName())) {
|
||||
return true;
|
||||
}
|
||||
current = current.getParentTag();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user