asciidoctor-multipage 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asciidoctor-multipage/version.rb +1 -1
- data/lib/asciidoctor-multipage.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9bc80d04fcc2a7b13b46faa08fb368854a4bd0e92d26860189d711dfd649b1a3
|
|
4
|
+
data.tar.gz: cbcb93115885fa0cdda574ee8a4b4327ba2045f5b5b200be38014aa3459565c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15b4272f23b5ad8f987eb4fcdd858de6e69a411ae611f59c2278ac78df1629ff5db1144511c562b949d3ae7377dbc07b250e6c2b908e4da3b1c249d9fa191d89
|
|
7
|
+
data.tar.gz: fc76d71d1a64819002cd5d074066ae7de37917b9f33a0846471dadc998b7a5db2fe273dac8f819cf5189bd0e822eafb34d6528d73b582a4a56513f92563ffcb1
|
|
@@ -68,7 +68,10 @@ class Asciidoctor::Document
|
|
|
68
68
|
# entire document.
|
|
69
69
|
#
|
|
70
70
|
# Prevent Ruby warning about redefining the method.
|
|
71
|
-
|
|
71
|
+
begin
|
|
72
|
+
remove_method(:sections?)
|
|
73
|
+
rescue NameError
|
|
74
|
+
end
|
|
72
75
|
def sections?
|
|
73
76
|
return true
|
|
74
77
|
end
|
|
@@ -508,6 +511,11 @@ class MultipageHtml5Converter < Asciidoctor::Converter::Html5Converter
|
|
|
508
511
|
:doctype => doc.doctype,
|
|
509
512
|
:header_footer => !doc.attr?(:embedded),
|
|
510
513
|
:safe => doc.safe})
|
|
514
|
+
# Manually remove stylesheet attribute if not set on original document
|
|
515
|
+
# (why is doc.attributes.clone not adequate?)
|
|
516
|
+
if ! doc.attributes.has_key?('stylesheet')
|
|
517
|
+
page.remove_attr('stylesheet')
|
|
518
|
+
end
|
|
511
519
|
# Retain webfonts attribute (why is doc.attributes.clone not adequate?)
|
|
512
520
|
page.set_attr('webfonts', doc.attr(:webfonts))
|
|
513
521
|
# Save sectnum for use later (a Document object normally has no sectnum)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asciidoctor-multipage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Owen T. Heisler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: appraisal
|