asciidoctor-pdf 2.3.21 → 2.3.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4250f6c0a0f203fe5e164656467da521bf4741771dd2627030c02a5401c24970
4
- data.tar.gz: ef2cdb91e970f26ec2cbbb680d94db21d613aaf3c339492f63bbdb5c30a19337
3
+ metadata.gz: f8cafcd70b5b755731f5b3530530e777e3d1b6064060d77ea097e6c2a8097f62
4
+ data.tar.gz: '041282968c666db6c86912ac916e9bac329033fbe742d006758319a86e1f1e45'
5
5
  SHA512:
6
- metadata.gz: a53a41fffe731219da61c25eea7f443dd7cb3b64594e116637f28f2f43173a8d4f43c1b7040cacee56566a3e0bb6be474a6d488275d02094646ea1d48b1fb9a2
7
- data.tar.gz: 717af76d4f0f4d958301f099e68ccd3395bc54b5740b2fa47d741fee2bd13aec2d2f48e5443c5d43f64535f23f6b12dc1a00d1c0dd74216a0f95f7ac15845e89
6
+ metadata.gz: 0721e4521f62a0e058d6a43277c95ea50fcacaf73886561abacc5a54dbf96389069e91db2b71ae24dd17c9009b6e4de327e08908dbe27fde903d456267244673
7
+ data.tar.gz: b38f1200389d836c18f21ed54a07e34182d359eafeff25a9f43c38194d4d12787b72aac9dd02ea042ee35ba2200bba9be636077da0eed9cd785990d4c1da0474
data/CHANGELOG.adoc CHANGED
@@ -5,12 +5,23 @@
5
5
  This document provides a high-level view of the changes to the {project-name} by release.
6
6
  For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
7
7
 
8
+ == 2.3.22 (2025-10-23) - @mojavelinux
9
+
10
+ Bug Fixes::
11
+
12
+ * don't orphan section with unbreakable option that spans page boundary (#2608)
13
+ * correctly track start page number of section title that self-advances when section is breakable (#2609)
14
+
15
+ === Details
16
+
17
+ {url-repo}/releases/tag/v2.3.22[git tag] | {url-repo}/compare/v2.3.21\...v2.3.22[full diff]
18
+
8
19
  == 2.3.21 (2025-10-08) - @mojavelinux
9
20
 
10
21
  Improvements::
11
22
 
12
23
  * remove shy hyphens from text in log message when formatted text cannot be parsed (#2599)
13
- * clear float box if next block falls outside of flaot group (#2596)
24
+ * clear float box if next block falls outside of float group (#2596)
14
25
  * resolve fonts relative to theme dir before GEM_FONTS_DIR if `pdf-fontsdir` not specified (#2349)
15
26
  * add see and see-also associations on index terms to index (#2527)
16
27
 
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor PDF: A native PDF converter for AsciiDoc
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.3.21, 2025-10-08
3
+ v2.3.22, 2025-10-23
4
4
  // Settings:
5
5
  :experimental:
6
6
  :idprefix:
@@ -208,3 +208,4 @@ Free use of this software is granted under the terms of the MIT License.
208
208
 
209
209
  For the full text of the license, see the link:LICENSE[] file.
210
210
  Refer to the <<NOTICE.adoc#,NOTICE>> file for information about third-party Open Source software in use.
211
+ endif::[]
@@ -2912,9 +2912,10 @@ module Asciidoctor
2912
2912
  if (min_height_after = @theme.heading_min_height_after) == 'auto' || (node.option? 'breakable')
2913
2913
  orphaned = nil
2914
2914
  doc = node.document
2915
+ start_page_number = nil
2915
2916
  dry_run single_page: true do
2916
2917
  push_scratch doc
2917
- start_page = page
2918
+ start_page_number ||= page_number # block will be restarted if first attempt fails
2918
2919
  theme_font :heading, level: opts[:level] do
2919
2920
  if opts[:part]
2920
2921
  ink_part_title node, title, opts
@@ -2924,9 +2925,11 @@ module Asciidoctor
2924
2925
  ink_general_heading node, title, opts
2925
2926
  end
2926
2927
  end
2927
- if page == start_page
2928
+ if page_number == start_page_number
2928
2929
  page.tare_content_stream
2929
2930
  orphaned = stop_if_first_page_empty { node.context == :section ? (traverse node) : (convert node.next_sibling) }
2931
+ else
2932
+ orphaned = true
2930
2933
  end
2931
2934
  ensure
2932
2935
  pop_scratch doc
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module PDF
5
- VERSION = '2.3.21'
5
+ VERSION = '2.3.22'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.21
4
+ version: 2.3.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-10-08 00:00:00.000000000 Z
12
+ date: 2025-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: asciidoctor