[jOOQ/jOOQ#12195] Improve formatting of XMLELEMENT()

This commit is contained in:
Lukas Eder 2021-07-15 09:21:32 +02:00
parent f3bf1e7e73
commit a24257833d

View File

@ -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);