-AT_CLEANUP
-\f
-AT_BANNER([output rendering -- vertical page breaks])
-
-AT_SETUP([breaking column of many small cells])
-AT_KEYWORDS([render rendering])
-AT_CAPTURE_FILE([input])
-AT_DATA([input], [20 1
-m4_for([x], [1], [20], [1], [@x
-])])
-AT_CHECK([render-test --length=10 input], [0], [dnl
-+--+
-| 1|
-+--+
-| 2|
-+--+
-| 3|
-+--+
-| 4|
-+--+
-
-+--+
-| 5|
-+--+
-| 6|
-+--+
-| 7|
-+--+
-| 8|
-+--+
-
-+--+
-| 9|
-+--+
-|10|
-+--+
-|11|
-+--+
-|12|
-+--+
-
-+--+
-|13|
-+--+
-|14|
-+--+
-|15|
-+--+
-|16|
-+--+
-
-+--+
-|17|
-+--+
-|18|
-+--+
-|19|
-+--+
-|20|
-+--+
-])
-AT_CLEANUP
-
-AT_SETUP([breaking column of many small cells, with headers])
-AT_KEYWORDS([render rendering])
-AT_CAPTURE_FILE([input])
-AT_DATA([input], [17 1 0 0 1 1
-@a
-m4_for([x], [1], [15], [1], [@x
-])@b
-])
-AT_CHECK([render-test --length=13 input], [0], [dnl
-+--+
-| a|
-+--+
-| 1|
-+--+
-| 2|
-+--+
-| 3|
-+--+
-| 4|
-+--+
-| b|
-+--+
-
-+--+
-| a|
-+--+
-| 5|
-+--+
-| 6|
-+--+
-| 7|
-+--+
-| 8|
-+--+
-| b|
-+--+
-
-+--+
-| a|
-+--+
-| 9|
-+--+
-|10|
-+--+
-|11|
-+--+
-|12|
-+--+
-| b|
-+--+
-
-+--+
-| a|
-+--+
-|13|
-+--+
-|14|
-+--+
-|15|
-+--+
-| b|
-+--+
-])
-AT_CLEANUP
-
-AT_SETUP([disabling too-big headers])
-AT_KEYWORDS([render rendering])
-AT_CAPTURE_FILE([input])
-AT_DATA([input], [17 1 0 0 1 1
-@a
-m4_for([x], [1], [15], [1], [@x
-])@b
-])
-AT_CHECK([render-test --length=10 input], [0], [dnl
-+--+
-| a|
-+--+
-| 1|
-+--+
-| 2|
-+--+
-| 3|
-+--+
-
-+--+
-| 4|
-+--+
-| 5|
-+--+
-| 6|
-+--+
-| 7|
-+--+
-
-+--+
-| 8|
-+--+
-| 9|
-+--+
-|10|
-+--+
-|11|
-+--+
-
-+--+
-|12|
-+--+
-|13|
-+--+
-|14|
-+--+
-|15|
-+--+
-
-+--+
-| b|
-+--+
-])
-AT_CLEANUP
-
-AT_SETUP([breaking column of many medium-size cells])
-AT_KEYWORDS([render rendering])
-AT_CAPTURE_FILE([input])
-AT_DATA([input], [20 1
-m4_for([x], [1], [20], [1], [@top x\ncell x\nbottom x
-])])
-AT_CHECK([render-test --length 10 input], [0], [dnl
-+---------+
-| top 1|
-| cell 1|
-| bottom 1|
-+---------+
-| top 2|
-| cell 2|
-| bottom 2|
-+---------+
-
-+---------+
-| top 3|
-| cell 3|
-| bottom 3|
-+---------+
-| top 4|
-| cell 4|
-| bottom 4|
-+---------+
-
-+---------+
-| top 5|
-| cell 5|
-| bottom 5|
-+---------+
-| top 6|
-| cell 6|
-| bottom 6|
-+---------+
-
-+---------+
-| top 7|
-| cell 7|
-| bottom 7|
-+---------+
-| top 8|
-| cell 8|
-| bottom 8|
-+---------+
-
-+---------+
-| top 9|
-| cell 9|
-| bottom 9|
-+---------+
-| top 10|
-| cell 10|
-|bottom 10|
-+---------+
-
-+---------+
-| top 11|
-| cell 11|
-|bottom 11|
-+---------+
-| top 12|
-| cell 12|
-|bottom 12|
-+---------+
-
-+---------+
-| top 13|
-| cell 13|
-|bottom 13|
-+---------+
-| top 14|
-| cell 14|
-|bottom 14|
-+---------+
-
-+---------+
-| top 15|
-| cell 15|
-|bottom 15|
-+---------+
-| top 16|
-| cell 16|
-|bottom 16|
-+---------+
-
-+---------+
-| top 17|
-| cell 17|
-|bottom 17|
-+---------+
-| top 18|
-| cell 18|
-|bottom 18|
-+---------+
-
-+---------+
-| top 19|
-| cell 19|
-|bottom 19|
-+---------+
-| top 20|
-| cell 20|
-|bottom 20|
-+---------+
-])
-AT_CLEANUP
-
-AT_SETUP([breaking 3 columns with many joined cells])
-AT_KEYWORDS([render rendering])
-AT_CAPTURE_FILE([input])
-AT_DATA([input], [3 19
-m4_foreach([x], [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s], [x
-])@1
-m4_for([x], [2], [19], [1], [1*2 @x\nab\ncd
-])@20
-])
-AT_CHECK([render-test --length=6 --transpose input], [0], [dnl
- +--+--+
-a| 1|11|
- +--+ab|
-b| 2|cd|
- |ab+--+
-
- |ab+--+
-c|cd|12|
- +--+ab|
-d| 3|cd|
- |ab+--+
-
- |ab+--+
-e|cd|13|
- +--+ab|
-f| 4|cd|
- |ab+--+
-
- |ab+--+
-g|cd|14|
- +--+ab|
-h| 5|cd|
- |ab+--+
-
- |ab+--+
-i|cd|15|
- +--+ab|
-j| 6|cd|
- |ab+--+
-
- |ab+--+
-k|cd|16|
- +--+ab|
-l| 7|cd|
- |ab+--+
-
- |ab+--+
-m|cd|17|
- +--+ab|
-n| 8|cd|
- |ab+--+
-
- |ab+--+
-o|cd|18|
- +--+ab|
-p| 9|cd|
- |ab+--+
-
- |ab+--+
-q|cd|19|
- +--+ab|
-r|10|cd|
- |ab+--+
-
- |ab+--+
-s|cd|20|
- +--+--+
-])
-AT_CLEANUP
-
-AT_SETUP([vert break 6x6, joined rows and columns])
-AT_KEYWORDS([render rendering])
-RENDER_WEAVE_6X6
-AT_CHECK([render-test --length=6 input], [0], [dnl
-+-+---+-+-+-+
-|a|bcd|e|f|i|
-+-+-+-+-+g+-+
-|j|m|nop|h|q|
-|k+-+---+-+r|
-
-|k+-+-+---+r|
-|l|t|w|xyz|s|
-+-+u+-+-+-+-+
-|A|v|B|E|FGH|
-+-+-+C+-+---+
-
-+---+C+-+-+-+
-|IJK|D|L|O|P|
-+-+-+-+M+-+-+
-|Q|RST|N|U|V|
-+-+---+-+-+-+
-])
-AT_CLEANUP
-
-AT_SETUP([breaking joined cells too tall for page])
-AT_KEYWORDS([render rendering])
-AT_DATA([input], [4 6
-1*6 @abc\ndef\nghi\njkl\nmno\npqr\nstu\nvwx\nyzA\nBCD\nEFG
-1*3 @HIJ\nKLM\nOPQ\nRST\nUVW
-1*3 @XYZ\n012\n345\n678\n90a
-1*2 @bcd\nefg\nhij
-1*2 @klm\nnop\nqrs
-1*2 @tuv\nwxy\nzAB
-@C
-@D
-@E
-@F
-@G
-@H
-])
-AT_CHECK([render-test --transpose --length=6 input], [0], [dnl
-+---+---+---+-+
-|abc|HIJ|bcd|C|
-|def|KLM|efg+-+
-|ghi|OPQ|hij|D|
-|jkl|RST+---+-+
-
-|jkl|RST+---+-+
-|mno|UVW|klm|E|
-|pqr+---+nop+-+
-|stu|XYZ|qrs|F|
-|vwx|012+---+-+
-
-|vwx|012+---+-+
-|yzA|345|tuv|G|
-|BCD|678|wxy+-+
-|EFG|90a|zAB|H|
-+---+---+---+-+
-])
-AT_CLEANUP
-
-AT_SETUP([breaking cell too tall for page, no border])
-AT_KEYWORDS([render rendering])
-AT_CAPTURE_FILE([input])
-AT_DATA([input], [1 1
-abc defg hij klmn opq rstu vwx yz ABCDE FGH I JK LMNOP QR STU VWXYZ
-])
-AT_CHECK([render-test --width=6 --length=6 input], [0], [dnl
- abc
- defg
- hij
- klmn
- opq
- rstu
-
-vwx yz
- ABCDE
- FGH I
- JK
- LMNOP
-QR STU
-
- VWXYZ
-])
-AT_CLEANUP
-
-AT_SETUP([breaking cell too tall for page, with border])
-AT_KEYWORDS([render rendering])
-AT_CAPTURE_FILE([input])
-AT_DATA([input], [1 1
-@abc defg hij klmn opq rstu vwx yz ABCDE FGH I JK LMNOP QR STU VWXYZ
-])
-AT_CHECK([render-test --width=7 --length=6 input], [0], [dnl
-+-----+
-| abc|
-| defg|
-| hij|
-| klmn|
-| opq|
-
-| klmn|
-| opq|
-| rstu|
-| vwx|
-| yz|
-|ABCDE|
-
-| yz|
-|ABCDE|
-|FGH I|
-| JK|
-|LMNOP|
-| QR|
-
-|LMNOP|
-| QR|
-| STU|
-|VWXYZ|