tsql_parser 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parsing/formatters/strategy/set_formatter.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 952e888020ea34386901d0476d96b7ae3520ec13bf4414e27bf65da4ca3d22e6
|
4
|
+
data.tar.gz: 5da27fe2eaa080678b73957c48af3702f504fa1126bec5668e501a443b6fed6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22eb4777b4f9f716cb7e2bc158836e01fac84cbd007e1bc8be0e1bd8e6ca09c2ed1263af56d332f08ef806124e4681d23899a222178fcd441fa76865730ff755
|
7
|
+
data.tar.gz: 3e4c144c0b7e98c0bb909297cd0350e92a91762ff920a7801d3b6f451ec25b1f810b27cf2799619a68a7a55c55ea7efa84837faa916a242a878185b6371c4ead
|
@@ -107,8 +107,8 @@ module TSqlParser::Parsing::Formatters
|
|
107
107
|
builder = ""
|
108
108
|
end
|
109
109
|
elsif c == "\n"
|
110
|
-
parts << builder unless builder.empty?
|
111
|
-
builder = ""
|
110
|
+
#parts << builder unless builder.empty?
|
111
|
+
#builder = ""
|
112
112
|
elsif c == "-"
|
113
113
|
if next_c == "-"
|
114
114
|
comment = true
|
@@ -124,7 +124,7 @@ module TSqlParser::Parsing::Formatters
|
|
124
124
|
end
|
125
125
|
parts << builder unless builder.empty?
|
126
126
|
parts = parts.map { |p| p.strip }.select { |p| not p.empty? }
|
127
|
-
"\n#{parts.map { |p| "#{tab * (tab_count + 1)}#{p.strip}" }.join(",\n")}"
|
127
|
+
"\n#{parts.map { |p| "#{tab * (tab_count + 1)}#{p.strip.gsub(tab, " ")}" }.join(",\n")}"
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|