[jOOQ/jOOQ#9193] Consecutive RenderContext.formatSeparator() calls ignored when formatIndentStart() is called in between
This commit is contained in:
parent
8f9e089351
commit
8449e46fdd
@ -465,9 +465,14 @@ class DefaultRenderContext extends AbstractContext<RenderContext> implements Ren
|
||||
|
||||
@Override
|
||||
public final RenderContext formatIndentStart(int i) {
|
||||
if (cachedRenderFormatted)
|
||||
if (cachedRenderFormatted) {
|
||||
indent += i;
|
||||
|
||||
// [#9193] If we've already generated the separator (and indentation)
|
||||
if (newline)
|
||||
sql.append(cachedIndentation);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user