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: f17b9d80c9fe9a016f0dced0181c202a17b3d65848de1a401e6846f05f5480ff
4
- data.tar.gz: 3694f890d3e4105990a9524c76d91297969559811eecc5d61cc95ca41e3ea10d
3
+ metadata.gz: b16743c6cababdcfb502e0ccef65e77072b276867638514b9ff988cc9584793a
4
+ data.tar.gz: ffd9dfdcbf85f8972eb9f298b2b23ed2be6a3d4c8c87ca0f1ccd49b5408ba664
5
5
  SHA512:
6
- metadata.gz: 6b80958ff2c0334efa5a18973eb5f062ba95cb8ab59c5e824a5f985ad9d5a1681678699374b98bf416778c3dea2263e59b374d378d252dcbaa6ce703f764eea8
7
- data.tar.gz: b9ff4c933d9b598a4b95741023ffe6a69e890524f030ff123cf5519c4849581885e8490b35bd433dd5e917daa83c0b7abbfaa54b7d9e049f9374e1159f534ae5
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Standoc
3
- VERSION = "1.3.12".freeze
3
+ VERSION = "1.3.13".freeze
4
4
  end
5
5
  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.12
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-04 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor