line-tree 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -4
- data.tar.gz.sig +0 -0
- data/lib/line-tree.rb +4 -5
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f61074cf688e2b8575f49e7b90ce4b01eaa999814427cb31814b9ce7349d790c
|
4
|
+
data.tar.gz: 243c42bb0f38ea3997d72060fa96da11b7bf00067d02cff35db1b44d1923de5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e91fb43f1b8b94cf6c4f352f1171cbe31bd75533a02abeefcfd6f75c8fd0ab5acb3bde9c12932ee56834abcf25443417104535b26096db97d318e85c639f11
|
7
|
+
data.tar.gz: '0688401ae1e49f4ccb8dfc04337b31a0cacfad3ba2f00231959ad95b85ee057e78b1e9dfc653554a78d537c71b8abdf38ff83e234de91c92ae6e767adf911628'
|
checksums.yaml.gz.sig
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
�
|
3
|
-
|
4
|
-
B2͈��߳z5�I�&��G�c��[���o,`us�tf�"=
|
1
|
+
�"Z�&M�Vۚ�~n�[O}��uy��g�I��S>7J�u,�杖X���[�
|
2
|
+
J�+4���H�<ө��[�h�"��Ç8�d���8�D�A�7�6�w]9aHC�1ռ̊�������L/�D�W(Ua��N����m�����D��L�
|
3
|
+
�:Lu7\��Ֆ7�y!����e�1�"L���fjIը�P~��c������^�PS��i䇱��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/line-tree.rb
CHANGED
@@ -52,8 +52,8 @@ class LineTree
|
|
52
52
|
@numbered = numbered
|
53
53
|
s = "<ul>%s</ul>" % make_html_list(@to_a)
|
54
54
|
puts ('s: ' + s.inspect).debug if @debug
|
55
|
-
puts s
|
56
|
-
Rexle.new(s).xml
|
55
|
+
puts s if @debug
|
56
|
+
Rexle.new(s).xml declaration: false
|
57
57
|
|
58
58
|
end
|
59
59
|
|
@@ -104,8 +104,7 @@ class LineTree
|
|
104
104
|
[
|
105
105
|
count.to_s + '.' + i.to_s,
|
106
106
|
i == 1 ? "<ul>\n" : '',
|
107
|
-
i == a.length - 1 ? "</
|
108
|
-
i == a.length - 1 ? '</ul></li>' : '</li>'
|
107
|
+
i == a.length - 1 ? "\n</ul>\n</li>" : ''
|
109
108
|
]
|
110
109
|
|
111
110
|
else
|
@@ -123,7 +122,7 @@ class LineTree
|
|
123
122
|
"%s<li>%s" % [' ' * indent, x]
|
124
123
|
end
|
125
124
|
|
126
|
-
i == 1 ? "<ul>" + r : r
|
125
|
+
i == 1 ? "<ul>" + r : i == a.length - 1 ? r + "</li>" : r + ""
|
127
126
|
|
128
127
|
end
|
129
128
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|