int first_column = f->first_column;
int last_column = f->first_column + f->format.w - 1;
- char *columns = xasprintf ("%3d-%3d", first_column, last_column);
+ char *columns = xasprintf ("%d-%d", first_column, last_column);
pivot_table_put2 (table, 1, variable_idx,
pivot_value_new_user_text (columns, -1));
free (columns);
pivot_value_new_integer (spec->record));
int last_column = spec->first_column + spec->format.w - 1;
pivot_table_put2 (table, 1, row, pivot_value_new_user_text_nocopy (
- xasprintf ("%3d-%3d",
+ xasprintf ("%d-%d",
spec->first_column, last_column)));
char fmt_string[FMT_STRING_LEN_MAX + 1];
AT_CHECK([pspp -O format=csv begin-data.sps], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-a,1,1- 1,F1.0
-b,1,2- 2,F1.0
+a,1,1-1,F1.0
+b,1,2-2,F1.0
Table: Data List
a,b
AT_CHECK([pspp -O format=csv begin-data.sps], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-A,1,1- 1,F1.0
-B,1,2- 2,F1.0
+A,1,1-1,F1.0
+B,1,2-2,F1.0
Table: Data List
A,B
AT_CHECK([pspp -O format=csv dataset.pspp], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-x,1,1- 1,F1.0
+x,1,1-1,F1.0
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-y,1,2- 4,F3.0
+y,1,2-4,F3.0
])
AT_CLEANUP
\ No newline at end of file
AT_CHECK([cat pspp.csv], [0], [dnl
Table: Reading 1 record from `data.txt'.
Variable,Record,Columns,Format
-avar,1,1- 5,F5.0
-bvar,1,6- 10,F5.0
+avar,1,1-5,F5.0
+bvar,1,6-10,F5.0
Table: Data List
avar,bvar
AT_CHECK([cat pspp.csv], [0], [dnl
Table: Reading 1 record from `data.txt'.
Variable,Record,Columns,Format
-avar,1,1- 5,F5.0
-bvar,1,6- 10,F5.0
+avar,1,1-5,F5.0
+bvar,1,6-10,F5.0
Table: Data List
Case Number,avar,bvar
AT_CHECK([cat pspp.csv], [0], [dnl
Table: Reading 1 record from `weight.txt'.
Variable,Record,Columns,Format
-AVAR,1,1- 5,F5.0
-BVAR,1,6- 10,F5.0
+AVAR,1,1-5,F5.0
+BVAR,1,6-10,F5.0
Table: Descriptive Statistics
,N,Mean,S.E. Mean,Std Dev,Variance,Kurtosis,S.E. Kurt,Skewness,S.E. Skew,Range,Minimum,Maximum,Sum
AT_CHECK([cat pspp.csv], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-W,1,1- 1,F1.0
+W,1,1-1,F1.0
Table: Data List
W,X,Y,Z
AT_CHECK([pspp -O format=csv autorecode.sps], [0],
[Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-X,1,1- 5,A5
-Y,1,7- 7,F1.0
+X,1,1-5,A5
+Y,1,7-7,F1.0
Table: Recoding X into A.
Old Value,New Value,Value Label
AT_CHECK([pspp -O format=csv autorecode.sps], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-X,1,1- 5,A5
-Y,1,7- 7,F1.0
+X,1,1-5,A5
+Y,1,7-7,F1.0
Table: Recoding X into A.
Old Value,New Value,Value Label
AT_CHECK([pspp -o - -O format=csv -o pspp.txt crosstabs.sps], [0],
[Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-x,1,1- 2,F2.0
-y,1,3- 3,F1.0
-z,1,4- 4,F1.0
+x,1,1-2,F2.0
+y,1,3-3,F1.0
+z,1,4-4,F1.0
Table: Data List
x,y,z
AT_CHECK([pspp -o - -O format=csv -o pspp.csv -o pspp.txt crosstabs.sps], [0],
[Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-x,1,1- 2,F2.0
-y,1,3- 3,F1.0
-z,1,4- 4,F1.0
+x,1,1-2,F2.0
+y,1,3-3,F1.0
+z,1,4-4,F1.0
Table: Data List
x,y,z
AT_CHECK([pspp -O format=csv descriptives.sps], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-V0,1,1- 1,F1.0
-V1,1,2- 2,F1.0
-V2,1,3- 3,F1.0
-V3,1,4- 4,F1.0
-V4,1,5- 5,F1.0
-V5,1,6- 6,F1.0
-V6,1,7- 7,F1.0
-V7,1,8- 8,F1.0
-V8,1,9- 9,F1.0
-V9,1,10- 10,F1.0
-V10,1,11- 11,F1.0
-V11,1,12- 12,F1.0
-V12,1,13- 13,F1.0
-V13,1,14- 14,F1.0
-V14,1,15- 15,F1.0
-V15,1,16- 16,F1.0
-V16,1,17- 17,F1.0
+V0,1,1-1,F1.0
+V1,1,2-2,F1.0
+V2,1,3-3,F1.0
+V3,1,4-4,F1.0
+V4,1,5-5,F1.0
+V5,1,6-6,F1.0
+V6,1,7-7,F1.0
+V7,1,8-8,F1.0
+V8,1,9-9,F1.0
+V9,1,10-10,F1.0
+V10,1,11-11,F1.0
+V11,1,12-12,F1.0
+V12,1,13-13,F1.0
+V13,1,14-14,F1.0
+V14,1,15-15,F1.0
+V15,1,16-16,F1.0
+V16,1,17-17,F1.0
Table: Descriptive Statistics
,N,Mean,S.E. Mean,Std Dev,Variance,Kurtosis,S.E. Kurt,Skewness,S.E. Skew,Range,Minimum,Maximum,Sum
AT_CHECK([[sed 's/(Entered [^)]*)/(Entered <date>)/' pspp.csv]], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-X,1,1- 1,F1.0
-Y,1,2- 2,F1.0
+X,1,1-1,F1.0
+Y,1,2-2,F1.0
Table: Documents
"document First line of a document
AT_CHECK([pspp -O format=csv compute.sps], [0],
[Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-ITEM,1,1- 3,F3.0
+ITEM,1,1-3,F3.0
])
AT_CHECK([cat compute-sum.out], [0],
[ 123 123.00 @&t@
AT_CHECK([pspp -O format=csv count.sps], [0], [dnl
Table: Reading 1 record from INLINE.
Variable,Record,Columns,Format
-v1,1,1- 2,A2
-v2,1,3- 4,A2
+v1,1,1-2,A2
+v2,1,3-4,A2
Table: Data List
v1,v2,c