asciidoctor-rhrev 1.2.2 → 1.2.3

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: 4d83e91d276df02dd54e4b4af8c2ca5524ec503c36603e0e5f268309e5f0d529
4
- data.tar.gz: 7780816da60b8799b7c4e9427fa7436c086862b0b8dde350e5a681f76f4ee017
3
+ metadata.gz: 87f9419e740ba6f0002e1a4fd06c2930319910ff2a3bf2fbeeefbfee33d6c0d3
4
+ data.tar.gz: 2c6759b77bd7c9ab7d16e906a569541c36a185a594f45b0e398e2f028087e0bc
5
5
  SHA512:
6
- metadata.gz: a232c651f5391d90456fe32ada20a1f072044b74bc7998339197662015091fc2781ea053599911abb74fc56384ed63a86c77016562198ae25751282a5c9abfb4
7
- data.tar.gz: 20cdc734fb0840b3846ff3f01add4d1442c957ce84add7057920b14cb1e456816fd5a20ad870fc77228fe63d3276233455a70dd3f7f1d15a6649be5a65ddff30
6
+ metadata.gz: d939d3d0be086e54ef94165c96532594992d45adf7d3f93cd1b1d64b2667db5bddfdfc6566252b7dc0b830536c46c2dc822c313d19477ec78c0e8dfbb816905a
7
+ data.tar.gz: 9918859a0819b3ad98926199f499eab62ff3185cd012f31b0c45fe5b8f76ae310c6fcdb9ab3096fa256335b2d5cdd42fb1f1a739e6cbba53e8db9da5c3fbb654
data/CHANGELOG.adoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.2.3 (2026-07-15)
4
+
5
+ * Fix the initial-release table (revnumber `1.0`/`1` with `rhrev-initial-handling` `initial-release`) rendering a "Major changes since Revision X" header row: an initial release has no prior revision, so the table is now a single `Page | Initial Release` row (PDF backend, HTML backend, and Antora extension). Caption, custom first row, and all localization/customization attributes are unaffected; `rhrev-localization-major-changes` still applies to the regular revision-history table
6
+
3
7
  == 1.2.2 (2026-07-15)
4
8
 
5
9
  * Fix the initial-release table (revnumber `1.0`/`1`) dropping the `rhrev-table-caption` and the custom first row (`rhrev-customization-first-row`, `-left`, `-right`) in the PDF backend; both now render the same way as in the regular revision-history table
@@ -233,18 +233,10 @@ module Asciidoctor
233
233
 
234
234
  column_widths = get_column_widths doc
235
235
  table_data = []
236
-
236
+
237
237
  page_label = doc.attr 'rhrev-localization-page', 'Page'
238
- major_changes_text = doc.attr 'rhrev-localization-major-changes', 'Major changes since'
239
-
240
- revision_label = doc.attr('version-label', 'Revision')
241
- revnumber = doc.attr('revnumber')
242
-
243
- header_text = "*#{major_changes_text} #{revision_label} #{revnumber}*"
244
- table_data << ["*#{page_label}*", header_text]
245
-
246
238
  initial_text = doc.attr 'rhrev-customization-initial-release-text', 'Initial Release'
247
- table_data << ["", initial_text]
239
+ table_data << ["*#{page_label}*", initial_text]
248
240
 
249
241
  formatted_widths = column_widths.map { |w| w.to_i.to_s }.join(',')
250
242
  markup_lines = []
@@ -114,10 +114,7 @@ module Asciidoctor
114
114
 
115
115
  column_widths = doc.attr('rhrev-table-column-width', '30,70').split(',').map(&:strip)
116
116
  section_label = doc.attr('rhrev-localization-location', 'Section')
117
- major_changes_text = doc.attr('rhrev-localization-major-changes', 'Major changes since')
118
- version_label = doc.attr('version-label', 'Revision')
119
- revnumber = doc.attr('revnumber', '1.0')
120
-
117
+
121
118
  # Build table CSS classes with frame and grid
122
119
  frame = doc.attr('rhrev-table-frame', 'all')
123
120
  grid = doc.attr('rhrev-table-grid', 'all')
@@ -151,13 +148,9 @@ module Asciidoctor
151
148
  end
152
149
  end
153
150
 
154
- html << '<tr class="rhrev-header">'
155
- html << %(<th class="tableblock halign-left valign-top">#{section_label}</th>)
156
- html << %(<th class="tableblock halign-left valign-top"><strong>#{major_changes_text} #{version_label} #{revnumber}</strong></th>)
157
- html << '</tr>'
158
151
  html << '<tr>'
159
- html << '<td>&nbsp;</td>'
160
- html << %(<td>#{initial_text}</td>)
152
+ html << %(<th class="tableblock halign-left valign-top">#{section_label}</th>)
153
+ html << %(<td class="tableblock halign-left valign-top">#{initial_text}</td>)
161
154
  html << '</tr>'
162
155
  html << '</tbody>'
163
156
  html << '</table>'
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.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - 白一百 baiyibai