@baiyibai-antora/extensions 1.9.1 → 1.9.2
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.
package/CHANGELOG.adoc
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
All notable changes to this project will be documented in this file.
|
|
5
5
|
|
|
6
|
+
== [1.9.2] - 2026-08-18
|
|
7
|
+
|
|
8
|
+
=== Fixed
|
|
9
|
+
|
|
10
|
+
* autoterm-legacy-pdf: the entry pre-check pads its height estimate by one line's leading. height_of measures on a different line-height basis than the typeset call, and the per-entry disagreement eroded the margin over a long table until Prawn silently spilled a label to the next page
|
|
11
|
+
|
|
6
12
|
== [1.9.1] - 2026-08-18
|
|
7
13
|
|
|
8
14
|
=== Added
|
package/package.json
CHANGED
|
@@ -74,7 +74,13 @@ class AutotermLegacyPdfConverter < (Asciidoctor::Converter.for 'pdf')
|
|
|
74
74
|
label_height = height_of label, width: term_column_width
|
|
75
75
|
body_height = body.empty? ? 0 : (height_of body, width: bounds.width - term_width)
|
|
76
76
|
entry_height = [label_height, body_height].max
|
|
77
|
-
|
|
77
|
+
# height_of measures on its own default line-height basis while the
|
|
78
|
+
# typeset below uses line_metrics, and the two disagree by a small fixed
|
|
79
|
+
# amount per line. Over a long table the disagreement erodes the
|
|
80
|
+
# pre-check's margin until Prawn silently spills a label to the next
|
|
81
|
+
# page. Padding the comparison by one line's leading keeps the check
|
|
82
|
+
# conservative on the real rendering basis.
|
|
83
|
+
bounds.move_past_bottom if (entry_height + line_metrics.padding_top + line_metrics.padding_bottom) > cursor
|
|
78
84
|
|
|
79
85
|
start_cursor = cursor
|
|
80
86
|
|