asciidoctor-rhrev 1.3.1 → 1.4.0

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: b64bf51f30ba6f298ac05c96c68df9b5a1d42c1c0671ca2cedf903df53b2c584
4
- data.tar.gz: 359c71a434b72fa4cb734362c27eae1a499ad96480602ab1ae9d1e1d73f69789
3
+ metadata.gz: f3babf6364c6012f042c82924f7d71c29636646744da52849b8d713638d09b8a
4
+ data.tar.gz: 206543f4a07a74b2c4ea3a589037a41605d87d6f066b201fb1280ab9436dd3ef
5
5
  SHA512:
6
- metadata.gz: 7380f1500ae2ba4befc6b3650cbc02fb2f5db15588fedfca99fc59ec17ae6dff557225f470a71908fd2af7c06d5217e55f1bee1e9f4eb1fcc1042f68657b6a94
7
- data.tar.gz: 612871f81c20e144fbda5901cebf46a122005786d719dab0a2557bf04a609e508ff7238c69794e62ea46dcde8761b7d26dca694427d3e8d5f01d7a630c49e241
6
+ metadata.gz: 05e9e9583c75900e39aec66ac1004990d49e2b3eb9facb797a72d931dd2747cff34a66c5bd79e3d69c7b120ca4267b43d20b9ca1d34d187e34c2c7dcdea15096
7
+ data.tar.gz: ec541680bb201d87151e66923e2c635b8d2b67efb48b46ea8e1789ab7d4cc178e9c0d681c1abcea2491f74f9345383575cabfe217a54151972c0d037212cc8a1
data/CHANGELOG.adoc CHANGED
@@ -1,5 +1,10 @@
1
1
  = Changelog
2
2
 
3
+ == 1.4.0 (2026-08-14)
4
+
5
+ * Add the `recursive` block option for PDF change bars: a section marked `[%recursive,rhrevN-M="..."]` draws one continuous bar over the whole section, nested child sections included, matching the HTML backend's whole-section extent. Without the option a marked section's bar still stops at its first child section. A child section marked in the current revision inside a recursive section draws its own bar, overlapping the parent's. The option affects sections only; other tracked blocks already receive a bar over their whole extent
6
+ * Note: this is a PDF-only release; the npm package skips 1.4.0
7
+
3
8
  == 1.3.1 (2026-07-28)
4
9
 
5
10
  * Fix silent content loss in long revision-history tables (PDF backend): the extent dry-run that reserves space for the table now runs after `prescan_document` populates each tracked node's real `title`/`sectnum`/`reftext`/`caption_number`, so a description cross-reference (`[.rhrevdescription]`) that forward-references its own target no longer measures a humanized-anchor placeholder in the dry-run and the resolved text in the final backfill. When the two lengths differed, the accumulated row heights could shift a row across a reserved page boundary and drop its content from the output; measurement and backfill now agree. The metadata pass is gated on nodes carrying their own `rhrevN-M` attribute, so it adds no full-document walk
@@ -66,10 +66,13 @@ module Asciidoctor
66
66
  # nested child sections/chapters: as soon as a child section begins
67
67
  # rendering, close out the bar of every still-open ancestor section
68
68
  # right here, at the boundary between the parent's own content and
69
- # its first child section.
69
+ # its first child section. A section carrying the recursive option
70
+ # keeps its bar open across child boundaries; convert_section closes
71
+ # it after the whole section, children included, has rendered.
70
72
  def enter_change_bar_section node
71
73
  return unless @change_bar_attr
72
74
  @change_bar_section_stack.each do |ancestor|
75
+ next if ancestor.option? 'recursive'
73
76
  next unless (start_pos = take_change_bar_start ancestor)
74
77
  ink_change_bar start_pos, { page: page_number, cursor: cursor }
75
78
  end
@@ -91,7 +91,9 @@ module Asciidoctor
91
91
  end
92
92
 
93
93
  # Entering a section closes out any still-open ancestor change bars,
94
- # so a marked section's bar never bleeds into its child sections
94
+ # so a marked section's bar never bleeds into its child sections.
95
+ # Ancestors carrying the recursive option are exempt; their bar is
96
+ # inked below, after super has rendered every nested child.
95
97
  enter_change_bar_section node
96
98
  result = super
97
99
  exit_change_bar_section node
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-rhrev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 白一百 baiyibai