jekyll-l10n 1.3.11 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d594bbf71a900016c2db658e2608e859ba9f9beac94ab8ef33feff21fc77d3fd
|
|
4
|
+
data.tar.gz: ad7faef2249fe61c2621a48fc65ad37f7c657dd9e96c1891d513c62827903e49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f866be079e66e85d89a70950109afba2a33981572586f0daddee61310d43bc96afe273d2fc6901c276f2354e88833a3a8edb1dcadcfbf892988b3e9791a9b985
|
|
7
|
+
data.tar.gz: 10f2079998d4ff46a2842e064037ce501ea1e937f8cce10720d10216ed43eb2462fc943cb1f50c2992ad66d03ad057d91915d3abd725cf62c5634cd5e9812a10
|
|
@@ -193,15 +193,7 @@ module Jekyll
|
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
def self.escape_quotes_and_get_delimiter(escaped)
|
|
196
|
-
|
|
197
|
-
single_quote_count = escaped.count("'")
|
|
198
|
-
use_single_quotes = double_quote_count.positive? && single_quote_count.zero?
|
|
199
|
-
|
|
200
|
-
if use_single_quotes
|
|
201
|
-
["'", escaped.gsub("'", "\\'")]
|
|
202
|
-
else
|
|
203
|
-
['"', escaped.gsub('"', '\\"')]
|
|
204
|
-
end
|
|
196
|
+
['"', escaped.gsub('"', '\\"')]
|
|
205
197
|
end
|
|
206
198
|
|
|
207
199
|
def self.format_multiline_string(prefix, delimiter, escaped)
|
|
@@ -100,9 +100,8 @@ module Jekyll
|
|
|
100
100
|
remove_empty_icon_tags(clone)
|
|
101
101
|
|
|
102
102
|
text = TextNormalizer.normalize(clone.inner_html)
|
|
103
|
-
text = text
|
|
104
|
-
|
|
105
|
-
decode_html_entities(text)
|
|
103
|
+
text = decode_html_entities(text)
|
|
104
|
+
text&.then { |t| TextNormalizer.normalize(t).strip }
|
|
106
105
|
end
|
|
107
106
|
|
|
108
107
|
# Extract and validate text from a node.
|