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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9189fd92cd1faa176828d42a9f0e7b7b58dc995eeb945fad0d13214d41c54c0d
|
4
|
+
data.tar.gz: a6fa58d732b182153c56c04b9e83df2788abd01a497d12ed9746e990662ecec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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">
|
@@ -323,6 +323,12 @@ RSpec.describe Asciidoctor::Standoc do
|
|
323
323
|
"((ppt))",
|
324
324
|
|
325
325
|
"((ppm))", "((ppt))"
|
326
|
+
|
327
|
+
"((ppm))" 
|
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
|
+
“ppm
|
354
|
+
<index>
|
355
|
+
<primary>ppm</primary>
|
356
|
+
</index>
|
357
|
+
“ 
|
358
|
+
</p>
|
359
|
+
<figure id='_'>
|
360
|
+
<pre id='_'>((ppm))",</pre>
|
361
|
+
</figure>
|
346
362
|
</sections>
|
347
363
|
</standard-document>
|
348
364
|
OUTPUT
|