w_syntax_tree-erb 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ebb5ab1bbcd632cf3e6b4dffa3eee540b6feff33ac8d0e7bec89de2b2171ebe
4
- data.tar.gz: 3a11a343fb6ebd9b83e715e71e4dd615e997dc73e500b1b4b7f841055edc01db
3
+ metadata.gz: 8bf413854891332f7c07f2069844c37a24ca0df39de3a7b1ff414dfc28752b3b
4
+ data.tar.gz: b3a85ad42ede7091cdbe0e22104fb1549e3831f164e5c57a797cc0561fa90b3f
5
5
  SHA512:
6
- metadata.gz: e5440a04f66cc2117e4be78d6736afeee2aa28f2baf76208d4de2a4225a0b5d81597d4f834d9e228f31f1a8e7a7f4814a90e321cda5972d177c2ee05691ad086
7
- data.tar.gz: 67eac9bcb1faac4736047b2870f80b8173073c74d5c74fe4c2900d0a917780c86405b6b7968abd40efff4d55efc2a8ddf7fabce8e0434260734ddc611c2f0312
6
+ metadata.gz: 2611919aeb77f8bb7b9f6b1ad00aa5ba50f5ab9524f7b01781f2b7dccd66ee56e63b2da0a0206238713d9248c5b6ef4577d0ca1331ef9f4a01c7bd58bbc199ff
7
+ data.tar.gz: fda0cc5b5af8190437a3364552e8f3b507c144f9fa08d25bcdcd76feb822e75a9f05223e98386205a52b62663e0d79cc0df803fc9649baaac3aedf8483eafff9
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.9.3] - 2023-06-30
10
+
11
+ - Print empty html-tags on one line if possible
12
+
9
13
  ## [0.9.2] - 2023-06-30
10
14
 
11
15
  - Handle whitespace in HTML-strings using ERB-tags
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- w_syntax_tree-erb (0.9.2)
4
+ w_syntax_tree-erb (0.9.3)
5
5
  prettier_print (>= 1.2.0)
6
6
  syntax_tree (>= 6.1.1)
7
7
 
@@ -49,7 +49,12 @@ module SyntaxTree
49
49
  end
50
50
 
51
51
  def visit_html(node)
52
- visit_block(node)
52
+ # Make sure to group the tags together if there is no child nodes.
53
+ if node.elements.size == 0
54
+ q.group { visit_block(node) }
55
+ else
56
+ visit_block(node)
57
+ end
53
58
  end
54
59
 
55
60
  def visit_erb_block(node)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SyntaxTree
4
4
  module ERB
5
- VERSION = "0.9.2"
5
+ VERSION = "0.9.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: w_syntax_tree-erb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Newton