diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-03-13 01:49:01 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-04-05 12:58:12 -0600 |
| commit | a87db305bb962323f9957b4dd0169bd93baa7be2 (patch) | |
| tree | 80986992df3183c46655f8da9e46a64609281666 /spec | |
| parent | b65334b5b87efadebf5dc731e0441597ded845fd (diff) | |
only nudge margin box if necessary when computing height of caption
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/image_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/image_spec.rb b/spec/image_spec.rb index 4944b3ad..65f3db37 100644 --- a/spec/image_spec.rb +++ b/spec/image_spec.rb @@ -1815,12 +1815,13 @@ describe 'Asciidoctor::PDF::Converter - Image' do it 'should keep caption on same page as image when image exceeds height of page' do pdf = to_pdf <<~'EOS' - = Document Title + before image .Image caption image::tall-diagram.png[Tall diagram] EOS + (expect pdf.pages).to have_size 2 (expect get_images pdf, 2).to have_size 1 (expect pdf.pages[1].text).to eql 'Figure 1. Image caption' end |
