|
1094 | 1094 | (expect a_texts[0][:y]).to eql b_texts[0][:y]
|
1095 | 1095 | (expect b_texts[0][:x]).to eql b_texts[1][:x]
|
1096 | 1096 | end
|
| 1097 | + |
| 1098 | + it 'should preserve left margin on page that follows page containing a table with an AsciiDoc table cell' do |
| 1099 | + pdf = to_pdf <<~EOS, analyze: true |
| 1100 | + == Section Title |
| 1101 | +
|
| 1102 | + [%hardbreaks] |
| 1103 | + #{(['filler'] * 20).join ?\n} |
| 1104 | +
|
| 1105 | + [cols=2*] |
| 1106 | + |=== |
| 1107 | + |filler |
| 1108 | + a| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna al abcde aaaaaaaaaa bbbbb |
| 1109 | +
|
| 1110 | + ____ |
| 1111 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et |
| 1112 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do |
| 1113 | + ____ |
| 1114 | + |=== |
| 1115 | +
|
| 1116 | + terms:: |
| 1117 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloreata. |
| 1118 | +
|
| 1119 | + nested term::: |
| 1120 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. + |
| 1121 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. + |
| 1122 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et fin. |
| 1123 | +
|
| 1124 | + .list title |
| 1125 | + * Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. |
| 1126 | + EOS |
| 1127 | + |
| 1128 | + first_page_text = pdf.text.select {|it| it[:page_number] == 1 } |
| 1129 | + second_page_text = pdf.text.select {|it| it[:page_number] == 2 } |
| 1130 | + (expect second_page_text[0][:string]).to end_with ' et fin.' |
| 1131 | + (expect second_page_text[0][:x]).to be > 48.24 |
| 1132 | + (expect second_page_text[0][:x]).to eql first_page_text.last[:x] |
| 1133 | + (expect second_page_text[1][:string]).to eql 'list title' |
| 1134 | + (expect second_page_text[1][:x]).to eql 48.24 |
| 1135 | + end |
1097 | 1136 | end
|
1098 | 1137 |
|
1099 | 1138 | context 'Verse table cell' do
|
|
0 commit comments