metanorma-standoc 1.3.12 → 1.3.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b16743c6cababdcfb502e0ccef65e77072b276867638514b9ff988cc9584793a
|
4
|
+
data.tar.gz: ffd9dfdcbf85f8972eb9f298b2b23ed2be6a3d4c8c87ca0f1ccd49b5408ba664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f8d5d52e2b19588ea8bbea704ca28a8d5ab70640655adea14d5883547e18a0ccc32863af8ccb31b1fd23b3702406fcd529136f62921e459178cbdbfe5d28a5
|
7
|
+
data.tar.gz: e3d81d777d2dc81cb911f1131c725e3e4d34609e902a253d8ad8a8266a0a3885142ca2b3aff275cc739b5d4114b2ee8cc172289d44c143bd4ad17fd7d3214444
|
@@ -67,8 +67,9 @@ module Asciidoctor
|
|
67
67
|
xmldoc.traverse do |n|
|
68
68
|
next unless n.text?
|
69
69
|
if @smartquotes
|
70
|
+
next unless /[-'"(<>]|\.\.|\dx/.match(n)
|
70
71
|
next unless n.ancestors("pre, tt, sourcecode, bibdata, on, "\
|
71
|
-
"figure[@class = 'pseudocode']").empty?
|
72
|
+
"stem, figure[@class = 'pseudocode']").empty?
|
72
73
|
n.replace(Utils::smartformat(n.text))
|
73
74
|
else
|
74
75
|
n.replace(n.text.gsub(/(?<=\p{Alnum})\u2019(?=\p{Alpha})/, "'"))
|
@@ -156,7 +156,7 @@ module Asciidoctor
|
|
156
156
|
def reference_names(xmldoc)
|
157
157
|
xmldoc.xpath("//bibitem[not(ancestor::bibitem)]").each do |ref|
|
158
158
|
isopub = ref.at(ISO_PUBLISHER_XPATH)
|
159
|
-
docid = ref.at("./docidentifier[not(@type = 'DOI')]")
|
159
|
+
docid = ref.at("./docidentifier[not(@type = 'DOI')]") or next
|
160
160
|
reference = format_ref(docid.text, docid["type"], isopub)
|
161
161
|
@anchors[ref["id"]] = { xref: reference }
|
162
162
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-standoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|