From: Matt S Trout Date: Mon, 16 Sep 2019 19:01:35 +0000 (+0000) Subject: need $join having removed the space-after-), and resetting the proto was bad X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FQ-Branch.git;a=commitdiff_plain;h=bc3c183b55e38b20fd81638cc6b685d9ae475740 need $join having removed the space-after-), and resetting the proto was bad --- diff --git a/lib/SQL/Abstract/Formatter.pm b/lib/SQL/Abstract/Formatter.pm index 34db055..efbd912 100644 --- a/lib/SQL/Abstract/Formatter.pm +++ b/lib/SQL/Abstract/Formatter.pm @@ -54,14 +54,13 @@ sub _fold_sql { $folded =~ s/\n\Z//; push @res, $folded."\n"; $line_orig = $line - = $indent0.')'.($idx == $#parts ? '' : $nl_post); + = $indent0.')'.($idx == $#parts ? '' : $join); next PART; } if ($line ne $line_orig) { push @res, $line.($idx == $#parts ? '' : $nl_pre)."\n"; } if (length($line = $line_proto.$j) <= $w) { - $line_proto = $line; next PART; } my $innerdent = @res ? $indent : $next_indent;