[jOOQ/jOOQ#12195] Improve formatting of XMLELEMENT()
This commit is contained in:
parent
f3bf1e7e73
commit
a24257833d
@ -102,7 +102,7 @@ final class XMLElement extends AbstractField<XML> {
|
||||
|
||||
boolean hasAttributes = attributes != null && !((XMLAttributesImpl) attributes).attributes.isEmpty();
|
||||
boolean hasContent = !content.isEmpty();
|
||||
boolean format = hasAttributes || hasContent;
|
||||
boolean format = hasAttributes || !content.isSimple();
|
||||
|
||||
Consumer<Context<?>> accept0 = c -> {
|
||||
c.visit(K_NAME).sql(' ').visit(elementName);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user