summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-06-08 02:18:36 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-06-08 02:27:36 -0600
commit4b75ba919aaac269fd53028c5c9b96eb96527485 (patch)
tree48052505b28e32ca7714dac94fef7fc8b4e50f8b
parentefbfa5c34ff7de0fa2d719d054d2c5c9f55f07d3 (diff)
update ColumnBox#single_file to honor :reflow_margins option on column box
-rw-r--r--lib/asciidoctor/pdf/ext/prawn/document/column_box.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/pdf/ext/prawn/document/column_box.rb b/lib/asciidoctor/pdf/ext/prawn/document/column_box.rb
index 7ecb49ee..25c40f4d 100644
--- a/lib/asciidoctor/pdf/ext/prawn/document/column_box.rb
+++ b/lib/asciidoctor/pdf/ext/prawn/document/column_box.rb
@@ -24,7 +24,7 @@ Prawn::Document::ColumnBox.prepend (Module.new do
# Rearranges the column box into a single column, where the original columns are in a single file. Used
# for the purpose of computing the extent of content in a scratch document.
def single_file
- if @parent.absolute_top > @y && @columns > @current_column + 1
+ if @reflow_margins && @parent.absolute_top > @y && @columns > @current_column + 1
# defer reflow margins until all columns on current page have been exhausted
@reflow_margins = @document.page_number + (@columns - @current_column)
end