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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/syntax_tree/erb/format.rb +6 -1
- data/lib/syntax_tree/erb/version.rb +1 -1
- 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: 8bf413854891332f7c07f2069844c37a24ca0df39de3a7b1ff414dfc28752b3b
|
4
|
+
data.tar.gz: b3a85ad42ede7091cdbe0e22104fb1549e3831f164e5c57a797cc0561fa90b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -49,7 +49,12 @@ module SyntaxTree
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def visit_html(node)
|
52
|
-
|
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)
|