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 +4 -4
- data/CHANGELOG.adoc +4 -0
- data/lib/asciidoctor/rhrev/renderer.rb +2 -10
- data/lib/asciidoctor/rhrev/rhrev_html.rb +3 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87f9419e740ba6f0002e1a4fd06c2930319910ff2a3bf2fbeeefbfee33d6c0d3
|
|
4
|
+
data.tar.gz: 2c6759b77bd7c9ab7d16e906a569541c36a185a594f45b0e398e2f028087e0bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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 <<
|
|
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>'
|