Skip to content

Commit

Permalink
[FIX] Formatter adds whitespaces between symbols inside of quotes (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloRMira authored Dec 31, 2020
1 parent 5b168db commit 376d440
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 54 deletions.
6 changes: 3 additions & 3 deletions docs/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -1363,15 +1363,15 @@ <h4 id="add_whitespaces_query" class="doc_header"><code>add_whitespaces_query</c
<span class="n">add_whitespaces_query</span><span class="p">(</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">create or replace table my_table as /* some comment 1=1, 1 =1 */</span>
<span class="sd">select asdf, case when asdf= 1 then &#39;a&#39; else 0 end as qwerty</span>
<span class="sd">select asdf, case when asdf= 1 then &#39;=&#39; else 0 end as qwerty</span>
<span class="sd">from table1 as a</span>
<span class="sd">left join table2 as b on a.asdf= b.asdf</span>
<span class="sd">where asdf=1 and qwer =2</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="p">),</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">create or replace table my_table as /* some comment 1=1, 1 =1 */</span>
<span class="sd">select asdf, case when asdf = 1 then &#39;a&#39; else 0 end as qwerty</span>
<span class="sd">select asdf, case when asdf = 1 then &#39;=&#39; else 0 end as qwerty</span>
<span class="sd">from table1 as a</span>
<span class="sd">left join table2 as b on a.asdf = b.asdf</span>
<span class="sd">where asdf = 1 and qwer = 2</span>
Expand All @@ -1391,7 +1391,7 @@ <h4 id="add_whitespaces_query" class="doc_header"><code>add_whitespaces_query</c
<div class="output_subarea output_stream output_stdout output_text">
<pre>
create or replace table my_table as /* some comment 1=1, 1 =1 */
select asdf, case when asdf = 1 then &#39;a&#39; else 0 end as qwerty
select asdf, case when asdf = 1 then &#39;=&#39; else 0 end as qwerty
from table1 as a
left join table2 as b on a.asdf = b.asdf
where asdf = 1 and qwer = 2
Expand Down
Loading

0 comments on commit 376d440

Please sign in to comment.