metanorma-standoc 1.3.27 → 1.3.28

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: 3532b7b46d28cfd680ed255546a5a9fb9ba5658b3c05d9df3de9e1a31a03ab08
4
- data.tar.gz: 549dc05067472220e8a60846620ec2d778803ead8303aaded1196a58a2f51247
3
+ metadata.gz: 8ee3fb2a341c932aff7e68ccb8c048151741abcb0faaaeacc7397ec9f2b2d57e
4
+ data.tar.gz: d61e8f1944322c8f2d8a43dff3f0dc9fb6f3c74caffd3ce17998e1b7e25ff7a6
5
5
  SHA512:
6
- metadata.gz: 3539ca5c4d4c5807a4981fbfc4705e8810834ea500ae3636a713b307456758c2ad5a24956e317ea34b52a4f06d23abb6a55ab16c7aea69c04ce685b3b0975b53
7
- data.tar.gz: 46f2361f7f9d5d544bfb098940af446719276422d31310444d6b2d13b6f754c49e93e71d8d959cd4dc5e5740cca6fc66071e0231abc69cef1f0464dcc0b55e31
6
+ metadata.gz: 88eccb85c42a5a580f6a56a43ebd86122583fda463ceb4d1599671f482e5a6341ab4299f88d40a07aa639953c701a846101bbe3453dbf44a66947c7641d0cda2
7
+ data.tar.gz: f4cfbe3757116cb13eda00da0f01fb97b9548ae4eb5b9c5c56b3463ffcd3ab1dcbdddf182799b280ab430e7dbd4ee30179764c332c326238e98a5c1b3ef8a899
@@ -54,7 +54,6 @@ module Asciidoctor
54
54
  quotesource_cleanup(xmldoc)
55
55
  callout_cleanup(xmldoc)
56
56
  footnote_cleanup(xmldoc)
57
- empty_element_cleanup(xmldoc)
58
57
  mathml_cleanup(xmldoc)
59
58
  script_cleanup(xmldoc)
60
59
  docidentifier_cleanup(xmldoc)
@@ -64,6 +63,7 @@ module Asciidoctor
64
63
  boilerplate_cleanup(xmldoc)
65
64
  smartquotes_cleanup(xmldoc)
66
65
  para_cleanup(xmldoc)
66
+ empty_element_cleanup(xmldoc)
67
67
  img_cleanup(xmldoc)
68
68
  xmldoc
69
69
  end
@@ -74,7 +74,7 @@ module Asciidoctor
74
74
  def make_annexes(x)
75
75
  x.xpath("//*[@annex]").each do |y|
76
76
  y.delete("annex")
77
- next if y.name == "annex"
77
+ next if y.name == "annex" || !y.ancestors("annex").empty?
78
78
  y.wrap("<annex/>")
79
79
  y.parent["id"] = "_#{UUIDTools::UUID.random_create}"
80
80
  y.parent["obligation"] = y["obligation"]
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Standoc
3
- VERSION = "1.3.27".freeze
3
+ VERSION = "1.3.28".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.27
4
+ version: 1.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.