dnl PSPP - a program for statistical analysis.
dnl Copyright (C) 2017 Free Software Foundation, Inc.
-dnl
+dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation, either version 3 of the License, or
dnl (at your option) any later version.
-dnl
+dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
-dnl
+dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
-dnl # +-+---+-+-+-+
+# +-+---+-+-+-+
# |a|bcd|e|f|i|
# +-+-+-+-+g+-+
# |j|m|nop|h|q|
+----------+------+
a. Approximation.
b. This is a very long footnote that will have to wrap from one line to the
- next. Let's see if the rendering engine does it acceptably.
+next. Let's see if the rendering engine does it acceptably.
c. One
d. Two
e. Three
AT_SETUP([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_DATA([input], [19 3
+a
+@1
+2*1 @11\nab\ncd
+b
+2*1 @2\nab\ncd
+c
+2*1 @12\nab\ncd
+d
+2*1 @3\nab\ncd
+e
+2*1 @13\nab\ncd
+f
+2*1 @4\nab\ncd
+g
+2*1 @14\nab\ncd
+h
+2*1 @5\nab\ncd
+i
+2*1 @15\nab\ncd
+j
+2*1 @6\nab\ncd
+k
+2*1 @16\nab\ncd
+l
+2*1 @7\nab\ncd
+m
+2*1 @17\nab\ncd
+n
+2*1 @8\nab\ncd
+o
+2*1 @18\nab\ncd
+p
+2*1 @9\nab\ncd
+q
+2*1 @19\nab\ncd
+r
+2*1 @10\nab\ncd
+s
+@20
])
-AT_CHECK([render-test --transpose input], [0], [dnl
+AT_CHECK([render-test input], [0], [dnl
+--+--+
a| 1|11|
+--+ab|
+-+u+-+-+
|A|v|B|E|
+-+-+C+-+
-|IJK|D|L|
+|K K|D|L|
+-+-+-+M|
|Q|RST|N|
+-+---+-+
+-+-+r|
|xyz|s|
+-+-+-+
-|E|FGH|
+|E|H H|
+-+-+-+
|L|O|P|
|M+-+-+
AT_CHECK([render-test --width=8 input], [0],[dnl
+---+--
|abc|jk
-|def|
+|def|
|ghi+--
| |yz
+-+-+BC
|Q|V|EF
-|R| |
+|R| |
|S+-+-+
|T|012|
|U|345|
|9| | ab
| | | de
+-+-+ gh
-|opq|
+|opq|
|rst+---
|uvw| JK
-| |
+| |
+---+--+
| MNOPQ|
| RSTUV|
AT_CHECK([render-test -o mb0 --min-break=0 --width=8 input], [0],[dnl
+---+--
|abc|jk
-|def|
+|def|
|ghi+--
| |yz
+-+-+BC
|Q|V|EF
-|R| |
+|R| |
|S+-+-+
|T|012|
|U|345|
|9| | ab
| | | de
+-+-+ gh
-|opq|
+|opq|
|rst+---
|uvw| JK
-| |
+| |
+---+--+
| MNOPQ|
| RSTUV|