metanorma-ietf 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ietf/cleanup.rb +2 -1
- data/lib/isodoc/ietf/front.rb +1 -1
- data/lib/metanorma/ietf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea1c57c13cc70de322dae0d520d9643b939a5835975c49cfb64de8dbadad906b
|
4
|
+
data.tar.gz: 9c34b9675c03e4c35754fa1f3e2826d1f7837521e4d82e9e76c3f0876fbd7c40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c38a69f9cdac8106505836f5f95e76c5d03600fba62d2ba3a90021292c794d36ece9e6658a581697cb06c29aa8ebdb083e99d94cbb0155f43ae89787fac9d1f
|
7
|
+
data.tar.gz: 678ffc85d78c890e304475f9e0e387287399131e1259d7f034980840157dc488f2de0687291faf0b02de3c617098d7f0f0ed616e95f7fe28b77f95d50c4f2bfc
|
data/lib/isodoc/ietf/cleanup.rb
CHANGED
@@ -157,7 +157,8 @@ module IsoDoc::Ietf
|
|
157
157
|
s.children = s.children.to_xml.gsub(%r{<br/>\n}, "\n").
|
158
158
|
gsub(%r{\s+(<t[ >])}, "\\1").gsub(%r{</t>\s+}, "</t>")
|
159
159
|
sourcecode_remove_markup(s)
|
160
|
-
|
160
|
+
text = HTMLEntities.new.decode(s.children.to_xml.sub(/\A\n+/, ""))
|
161
|
+
s.children = "<![CDATA[#{text}]]>"
|
161
162
|
end
|
162
163
|
end
|
163
164
|
|
data/lib/isodoc/ietf/front.rb
CHANGED
@@ -168,7 +168,7 @@ module IsoDoc::Ietf
|
|
168
168
|
|
169
169
|
def date(isoxml, front)
|
170
170
|
date = @meta.get[:publisheddate] || @meta.get[:circulateddate] || return
|
171
|
-
date.gsub
|
171
|
+
date = date.gsub(/T.*$/, "")
|
172
172
|
attr = date_attr(date) || return
|
173
173
|
front.date **attr_code(attr)
|
174
174
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ietf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|