metanorma-standoc 1.10.3 → 1.10.3.1

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: a43a3db1e4ef2ae43a1b2c7ecd980384cac2ee645668e414c73fd8e53dee3859
4
- data.tar.gz: 6f026c1bd2e1d0c5f2f327cdc345af6635ff1c1454479fd42709b9d18fda5e60
3
+ metadata.gz: 9189fd92cd1faa176828d42a9f0e7b7b58dc995eeb945fad0d13214d41c54c0d
4
+ data.tar.gz: a6fa58d732b182153c56c04b9e83df2788abd01a497d12ed9746e990662ecec1
5
5
  SHA512:
6
- metadata.gz: 7b20738029106d832a852db8eabf340058cdcbf75d8ce16def000478733c3633ad1144ac1aa2f736a637423c19f90491429fbec591987bc2f4af58bb3c8df087
7
- data.tar.gz: 69f3e40acdca71435cda97dbcd33e862ffbacbb4eeaff97e543b971ec2744c72227115013ef2ac3ee88552c64bf413a36c060adf3af58e6ebb86c6b85997b070
6
+ metadata.gz: 4c5ae33422d77c5ce51e88c2d8006a61795542949687f7ceaec0e253298f15398d1e1a3bb65314e834952cb370d44d03b3af759f8be9e51487709e5d926ac6ae
7
+ data.tar.gz: 341c38c603a0f7b0f7913605309f633e5b76e8051ea41a6205342ec5b54fb3e4fb8799198c2deb12871251e2956ef2d09cb842ca1106baea042a56094b0c891f
@@ -94,6 +94,7 @@ module Asciidoctor
94
94
  xmldoc.xpath("//*[following::text()[1]"\
95
95
  "[starts-with(., '\"') or starts-with(., \"'\")]]")
96
96
  .each do |x|
97
+ next if !x.ancestors("pre, tt, sourcecode, stem, figure").empty?
97
98
  uninterrupt_quotes_around_xml1(x)
98
99
  end
99
100
  end
@@ -102,7 +103,7 @@ module Asciidoctor
102
103
  prev = elem.at(".//preceding::text()[1]") or return
103
104
  /\S$/.match?(prev.text) or return
104
105
  foll = elem.at(".//following::text()[1]")
105
- m = /^(["'][[:punct:]]*)(\s|$)/.match(foll&.text) or return
106
+ m = /^(["'][[:punct:]]*)(\s|$)/.match(HTMLEntities.new.decode(foll&.text)) or return
106
107
  foll.content = foll.text.sub(/^(["'][[:punct:]]*)/, "")
107
108
  prev.content = "#{prev.text}#{m[1]}"
108
109
  end
@@ -1011,8 +1011,14 @@
1011
1011
  <ref name="imagemap"/>
1012
1012
  <ref name="svgmap"/>
1013
1013
  <ref name="inputform"/>
1014
+ <ref name="toc"/>
1014
1015
  </choice>
1015
1016
  </define>
1017
+ <define name="toc">
1018
+ <element name="toc">
1019
+ <ref name="ul"/>
1020
+ </element>
1021
+ </define>
1016
1022
  <define name="inputform">
1017
1023
  <element name="form">
1018
1024
  <attribute name="id">
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "1.10.3".freeze
22
+ VERSION = "1.10.3.1".freeze
23
23
  end
24
24
  end
@@ -323,6 +323,12 @@ RSpec.describe Asciidoctor::Standoc do
323
323
  "((ppt))",
324
324
 
325
325
  "((ppm))", "((ppt))"
326
+
327
+ "((ppm))"&#xa0;
328
+
329
+ ....
330
+ ((ppm))",
331
+ ....
326
332
  INPUT
327
333
  output = <<~OUTPUT
328
334
  #{BLANK_HDR}
@@ -343,6 +349,16 @@ RSpec.describe Asciidoctor::Standoc do
343
349
  <primary>ppt</primary>
344
350
  </index>
345
351
  </p>
352
+ <p id='_'>
353
+ &#8220;ppm
354
+ <index>
355
+ <primary>ppm</primary>
356
+ </index>
357
+ &#8220;&#160;
358
+ </p>
359
+ <figure id='_'>
360
+ <pre id='_'>((ppm))",</pre>
361
+ </figure>
346
362
  </sections>
347
363
  </standard-document>
348
364
  OUTPUT
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.10.3
4
+ version: 1.10.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.