projects
/
scpubgit/Q-Branch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0569a14
)
do not indent for the first select
Arthur Axel "fREW" Schmidt [Thu, 2 Sep 2010 04:21:19 +0000 (
04:21
+0000)]
lib/SQL/Abstract/Tree.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract/Tree.pm
b/lib/SQL/Abstract/Tree.pm
index
5ae9b99
..
f967dc9
100644
(file)
--- a/
lib/SQL/Abstract/Tree.pm
+++ b/
lib/SQL/Abstract/Tree.pm
@@
-198,6
+198,7
@@
sub whitespace {
if (defined $ghetto_whitespacemap{lc $keyword}) {
$before = $self->newline . $self->indent($depth + $ghetto_whitespacemap{lc $keyword});
}
+ $before = '' if $depth == 0 and lc $keyword eq 'select';
return [$before, $after];
}