diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-06-21 23:48:22 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-06-22 01:18:38 -0600 |
| commit | b47436e6cf1fcc0c900e45b1c74f161f342d39c3 (patch) | |
| tree | 03735bc7994418194b06aacb60bf901ccf582bfb /spec/index_spec.rb | |
| parent | a4ed7c6df377310e3ecf9124f6f4d2282e39b28a (diff) | |
verify excess bottom margin of index category is not distributed to top of next column
Diffstat (limited to 'spec/index_spec.rb')
| -rw-r--r-- | spec/index_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/index_spec.rb b/spec/index_spec.rb index 634b71be..7eced4c1 100644 --- a/spec/index_spec.rb +++ b/spec/index_spec.rb @@ -483,4 +483,21 @@ describe 'Asciidoctor::PDF::Converter - Index' do (expect baz_texts).to have_size 2 (expect baz_texts[0][:x]).to eql baz_texts[1][:x] end + + it 'should not distribute excess bottom margin at top of next column' do + pdf = to_pdf <<~'EOS', analyze: true + = Document Title + :doctype: book + :pdf-page-size: A6 + + ((foo))((bar))((baz))((boom))((bang))((fee))((fi))((fo))((fum))((fan))((fool))((ying))((yang))((zed)) + + [index] + == Index + EOS + + b_category_text = pdf.find_unique_text 'B', page_number: 3 + z_category_text = pdf.find_unique_text 'Z', page_number: 3 + (expect b_category_text[:y]).to eql z_category_text[:y] + end end |
