From: Matt S Trout Date: Fri, 6 Sep 2019 02:03:52 +0000 (+0000) Subject: ON( now renders correctly as ON ( X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0655a7af8219e8fb04fd77ec6d6f9af95cf42a34;p=scpubgit%2FQ-Branch.git ON( now renders correctly as ON ( --- diff --git a/lib/SQL/Abstract/Formatter.pm b/lib/SQL/Abstract/Formatter.pm index d9eb350..42237fa 100644 --- a/lib/SQL/Abstract/Formatter.pm +++ b/lib/SQL/Abstract/Formatter.pm @@ -45,7 +45,7 @@ sub _fold_sql { $line .= $j_part; } else { if (ref($p) and $p->[1] eq '(' and $p->[-1] eq ')') { - push @res, $line.'('."\n"; + push @res, $line.$join.'('."\n"; my (undef, undef, $inner) = @$p; my $folded = $self->_fold_sql($indent, $indent, @$inner); push @res, $nl_post.$folded."\n";