From: Ben Pfaff Date: Thu, 25 Dec 2025 15:43:55 +0000 (-0800) Subject: display dimension labels in the corner better X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cb73509902d9b58e103bd487564ee979fb32083;p=pspp display dimension labels in the corner better --- diff --git a/rust/pspp/src/output/pivot/output.rs b/rust/pspp/src/output/pivot/output.rs index 17d1de9b2a..fa07f4f2c2 100644 --- a/rust/pspp/src/output/pivot/output.rs +++ b/rust/pspp/src/output/pivot/output.rs @@ -488,7 +488,6 @@ impl<'a> Heading<'a> { rotate_inner_labels: bool, rotate_outer_labels: bool, inner: bool, - dimension_label_position: LabelPosition, ) { let v = !h; @@ -596,13 +595,6 @@ impl<'a> Heading<'a> { } } } - - if dimension_label_position == LabelPosition::Corner && self.dimension.root.show_label { - table.put( - CellRect::new(v_ofs..v_ofs + 1, 0..h_ofs), - CellInner::new(Area::Corner, self.dimension.root.name.clone()), - ); - } } } @@ -690,7 +682,6 @@ impl<'a> Headings<'a> { rotate_inner_labels, rotate_outer_labels, inner, - self.row_label_position, ); v_ofs += heading.height; if !inner { @@ -720,5 +711,62 @@ impl<'a> Headings<'a> { ); } } + + // Display dimension labels in the corner. + // + // We allow a corner dimension label to spill over into additional + // otherwise blank columns in the stub, which can save horizontal space. + // For example, it can change this table: + // + // ```text + // Data File and Variable Attributes + // ╭────────────────────────┬─────╮ + // │Variable and Name │Value│ + // ├────────────────────────┼─────┤ + // │variable0 $@Role│0 │ + // ├────────────────────────┼─────┤ + // │variable1 $@Role│0 │ + // ├────────────────────────┼─────┤ + // │variable2 $@Role│0 │ + // ├────────────────────────┼─────┤ + // │variable3 $@Role│0 │ + // ╰────────────────────────┴─────╯ + // ``` + // + // into this one: + // + // ```text + // Data File and Variable Attributes + // ╭──────────────────┬─────╮ + // │Variable and Name │Value│ + // ├──────────────────┼─────┤ + // │variable0 $@Role │0 │ + // ├──────────────────┼─────┤ + // │variable1 $@Role │0 │ + // ├──────────────────┼─────┤ + // │variable2 $@Role │0 │ + // ├──────────────────┼─────┤ + // │variable3 $@Role │0 │ + // ╰──────────────────┴─────╯ + // ``` + if self.row_label_position == LabelPosition::Corner { + let mut corner_labels = Vec::new(); + let mut x = 0; + for heading in &self.headings { + if heading.dimension.root.show_label { + corner_labels.push((x, heading)); + } + x += heading.height; + } + for (i, (x0, heading)) in corner_labels.iter().copied().enumerate() { + let x1 = corner_labels + .get(i + 1) + .map_or(table.h[Axis2::X], |(x, _heading)| *x); + table.put( + CellRect::new(x0..x1, 0..h_ofs), + CellInner::new(Area::Corner, heading.dimension.root.name.clone()), + ); + } + } } } diff --git a/rust/pspp/src/spv/testdata/legacy3.expected b/rust/pspp/src/spv/testdata/legacy3.expected index 457ebbb2ea..8ba61a6b78 100644 --- a/rust/pspp/src/spv/testdata/legacy3.expected +++ b/rust/pspp/src/spv/testdata/legacy3.expected @@ -1,26 +1,26 @@ - Excluded Variables[d] -╭───────┬────────┬──────┬────┬───────────────────┬───────────────────────╮ -│Model │ │ │ │ │Collinearity Statistics│ -│ │ │ │ │ ├───────────────────────┤ -│ │ Beta In│ t │Sig.│Partial Correlation│ Tolerance │ -├───────┼────────┼──────┼────┼───────────────────┼───────────────────────┤ -│1 A│-.304[a]│-2.216│.032│ -.317│ .987│ -│ B│ .611[a]│ 5.532│.000│ .641│ .999│ -│ C│ .394[a]│ 2.964│.005│ .408│ .975│ -│ D│ .535[a]│ 4.415│.000│ .554│ .976│ -│ E│-.239[a]│-1.704│.095│ -.249│ .982│ -│ F│ .615[a]│ 5.558│.000│ .642│ .990│ -│ G│ .531[a]│ 4.390│.000│ .552│ .981│ -├───────┼────────┼──────┼────┼───────────────────┼───────────────────────┤ -│2 D│ .399[b]│ 1.908│.063│ .286│ .270│ -│ E│ .762[b]│ 1.598│.118│ .242│ .053│ -│ F│ .512[b]│ 1.713│.094│ .258│ .135│ -│ G│ .648[b]│ 2.154│.037│ .319│ .128│ -├───────┼────────┼──────┼────┼───────────────────┼───────────────────────┤ -│3 E│ .598[c]│ 1.250│.219│ .194│ .051│ -│ F│-.053[c]│ -.070│.945│ -.011│ .021│ -│ G│ .784[c]│ .964│.341│ .151│ .018│ -╰───────┴────────┴──────┴────┴───────────────────┴───────────────────────╯ + Excluded Variables[d] +╭──────┬────────┬──────┬────┬───────────────────┬───────────────────────╮ +│Model │ │ │ │ │Collinearity Statistics│ +│ │ │ │ │ ├───────────────────────┤ +│ │ Beta In│ t │Sig.│Partial Correlation│ Tolerance │ +├──────┼────────┼──────┼────┼───────────────────┼───────────────────────┤ +│1 A │-.304[a]│-2.216│.032│ -.317│ .987│ +│ B │ .611[a]│ 5.532│.000│ .641│ .999│ +│ C │ .394[a]│ 2.964│.005│ .408│ .975│ +│ D │ .535[a]│ 4.415│.000│ .554│ .976│ +│ E │-.239[a]│-1.704│.095│ -.249│ .982│ +│ F │ .615[a]│ 5.558│.000│ .642│ .990│ +│ G │ .531[a]│ 4.390│.000│ .552│ .981│ +├──────┼────────┼──────┼────┼───────────────────┼───────────────────────┤ +│2 D │ .399[b]│ 1.908│.063│ .286│ .270│ +│ E │ .762[b]│ 1.598│.118│ .242│ .053│ +│ F │ .512[b]│ 1.713│.094│ .258│ .135│ +│ G │ .648[b]│ 2.154│.037│ .319│ .128│ +├──────┼────────┼──────┼────┼───────────────────┼───────────────────────┤ +│3 E │ .598[c]│ 1.250│.219│ .194│ .051│ +│ F │-.053[c]│ -.070│.945│ -.011│ .021│ +│ G │ .784[c]│ .964│.341│ .151│ .018│ +╰──────┴────────┴──────┴────┴───────────────────┴───────────────────────╯ a. Footnote content a b. Footnote content b c. Footnote content c diff --git a/rust/pspp/src/sys/testdata/attributes.expected b/rust/pspp/src/sys/testdata/attributes.expected index 552bd19d30..675b710369 100644 --- a/rust/pspp/src/sys/testdata/attributes.expected +++ b/rust/pspp/src/sys/testdata/attributes.expected @@ -23,21 +23,21 @@ │ThirdVariable │ 3│ │ │Input │ 8│Right │F8.0 │F8.0 │ │ ╰──────────────┴────────┴─────┴─────────────────┴──────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Data File and Variable Attributes -╭───────────────────────────────┬─────────────╮ -│Variable and Name │ Value │ -├───────────────────────────────┼─────────────┤ -│(dataset) Attr1[1] │Value1 │ -│ Attr1[2] │'déclaration'│ -│ SécondAttr[1]│123 │ -│ SécondAttr[2]│456 │ -├───────────────────────────────┼─────────────┤ -│FirstVariable $@Role │1 │ -│ adèle[1] │23 │ -│ adèle[2] │34 │ -│ bert │123 │ -├───────────────────────────────┼─────────────┤ -│SécondVariable xyzzy │quux │ -├───────────────────────────────┼─────────────┤ -│ThirdVariable fizz │buzz │ -╰───────────────────────────────┴─────────────╯ + Data File and Variable Attributes +╭────────────────────────────┬─────────────╮ +│Variable and Name │ Value │ +├────────────────────────────┼─────────────┤ +│(dataset) Attr1[1] │Value1 │ +│ Attr1[2] │'déclaration'│ +│ SécondAttr[1]│123 │ +│ SécondAttr[2]│456 │ +├────────────────────────────┼─────────────┤ +│FirstVariable $@Role │1 │ +│ adèle[1] │23 │ +│ adèle[2] │34 │ +│ bert │123 │ +├────────────────────────────┼─────────────┤ +│SécondVariable xyzzy │quux │ +├────────────────────────────┼─────────────┤ +│ThirdVariable fizz │buzz │ +╰────────────────────────────┴─────────────╯ diff --git a/rust/pspp/src/sys/testdata/bad_variable_name_in_long_string_value_label.expected b/rust/pspp/src/sys/testdata/bad_variable_name_in_long_string_value_label.expected index 4bf3dd788a..fd6d95e78f 100644 --- a/rust/pspp/src/sys/testdata/bad_variable_name_in_long_string_value_label.expected +++ b/rust/pspp/src/sys/testdata/bad_variable_name_in_long_string_value_label.expected @@ -24,10 +24,10 @@ Ignoring long string value label for numeric variable NUM1. │str14│ 2│ │Nominal │Input│ 14│Left │A14 │A14 │ │ ╰─────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Value Labels -╭─────────────────────────────┬────────────────────────────────────────╮ -│Variable Value │ │ -├─────────────────────────────┼────────────────────────────────────────┤ -│str14 RSTUVWXYZ │value label for `RSTUVWXYZ' │ -│ abcdefghijklmn│another value label for `abcdefghijklmn'│ -╰─────────────────────────────┴────────────────────────────────────────╯ + Value Labels +╭────────────────────┬────────────────────────────────────────╮ +│Variable Value │ │ +├────────────────────┼────────────────────────────────────────┤ +│str14 RSTUVWXYZ │value label for `RSTUVWXYZ' │ +│ abcdefghijklmn│another value label for `abcdefghijklmn'│ +╰────────────────────┴────────────────────────────────────────╯ diff --git a/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected b/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected index 8e24108886..d941eaf9c0 100644 --- a/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected +++ b/rust/pspp/src/sys/testdata/duplicate_attribute_name.expected @@ -24,10 +24,10 @@ Warning at file offsets 0x10e to 0x12d: In file or variable attribute record: Du ╰────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭───────────────────────┬─────╮ -│Variable and Name │Value│ -├───────────────────────┼─────┤ -│(dataset) Attr1│value│ -├───────────────────────┼─────┤ -│firstvar fred │23 │ -╰───────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│(dataset) Attr1 │value│ +├──────────────────┼─────┤ +│firstvar fred │23 │ +╰──────────────────┴─────╯ diff --git a/rust/pspp/src/sys/testdata/duplicate_value_labels_type.expected b/rust/pspp/src/sys/testdata/duplicate_value_labels_type.expected index 7da70489ce..879b7ff8b5 100644 --- a/rust/pspp/src/sys/testdata/duplicate_value_labels_type.expected +++ b/rust/pspp/src/sys/testdata/duplicate_value_labels_type.expected @@ -24,11 +24,11 @@ NUM1 has duplicate value labels for the following value(s): 1 │num1│ 2│ │ │Input│ 8│Right │F8.0 │F8.0 │ │ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Value Labels -╭─────────────────────┬───╮ -│Variable Value │ │ -├─────────────────────┼───┤ -│str1 xyzzy │one│ -├─────────────────────┼───┤ -│num1 1 │one│ -╰─────────────────────┴───╯ + Value Labels +╭───────────────┬───╮ +│Variable Value │ │ +├───────────────┼───┤ +│str1 xyzzy │one│ +├───────────────┼───┤ +│num1 1 │one│ +╰───────────────┴───╯ diff --git a/rust/pspp/src/sys/testdata/null_dereference_skipping_bad_extension_record_18.expected b/rust/pspp/src/sys/testdata/null_dereference_skipping_bad_extension_record_18.expected index 9fab62375f..2098f5a5a2 100644 --- a/rust/pspp/src/sys/testdata/null_dereference_skipping_bad_extension_record_18.expected +++ b/rust/pspp/src/sys/testdata/null_dereference_skipping_bad_extension_record_18.expected @@ -26,17 +26,17 @@ This system file does not indicate its own character encoding. For best results │VAR00004│ 4│ │Nominal │Input│ 8│Left │A1 │A1 │ │ ╰────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Value Labels -╭───────────────────┬──────────╮ -│Variable Value │ │ -├───────────────────┼──────────┤ -│VAR00002 1.00│Male │ -│ 2.00│Female │ -├───────────────────┼──────────┤ -│VAR00003 2.00│Student │ -│ 3.00│Employed │ -│ 4.00│Unemployed│ -╰───────────────────┴──────────╯ + Value Labels +╭───────────────┬──────────╮ +│Variable Value │ │ +├───────────────┼──────────┤ +│VAR00002 1.00 │Male │ +│ 2.00 │Female │ +├───────────────┼──────────┤ +│VAR00003 2.00 │Student │ +│ 3.00 │Employed │ +│ 4.00 │Unemployed│ +╰───────────────┴──────────╯ ╭────┬────────┬────────┬────────┬────────╮ │Case│VAR00001│VAR00002│VAR00003│VAR00004│ diff --git a/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected b/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected index 0818af6f95..9242f8b640 100644 --- a/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected +++ b/rust/pspp/src/sys/testdata/unquoted_attribute_value.expected @@ -24,10 +24,10 @@ Warning at file offsets 0xfd to 0x10f: In file or variable attribute record: Att ╰────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭───────────────────────┬─────╮ -│Variable and Name │Value│ -├───────────────────────┼─────┤ -│(dataset) Attr1│value│ -├───────────────────────┼─────┤ -│firstvar fred │23 │ -╰───────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│(dataset) Attr1 │value│ +├──────────────────┼─────┤ +│firstvar fred │23 │ +╰──────────────────┴─────╯ diff --git a/rust/pspp/src/sys/testdata/value_labels.expected b/rust/pspp/src/sys/testdata/value_labels.expected index 16d3c3e28b..8b862448c8 100644 --- a/rust/pspp/src/sys/testdata/value_labels.expected +++ b/rust/pspp/src/sys/testdata/value_labels.expected @@ -37,60 +37,60 @@ │str17│ 17│ │Nominal │Input│ 17│Left │A17 │A17 │ │ ╰─────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Value Labels -╭────────────────────────────────┬───────────────────────────────────────────────────────────────╮ -│Variable Value │ │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│num1 1 │один (in Russian) │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│num2 1 │one │ -│ 2 │two │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│num3 3 │three │ -│ 4 │four │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│num4 5 │five │ -│ 7 │seven │ -│ 8 │eight │ -│ 9 │nine │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│num5 6 │six │ -│ 7 │seven │ -│ 8 │eight │ -│ 10 │ten │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str1 a │value label for `a' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str2 bc │value label for `bc' │ -│ de │value label for `de' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str3 fgh │value label for `fgh' │ -│ ijk │value label for `ijk' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str4 BCDE │value label for `BCDE' │ -│ lmno │value label for `lmno' │ -│ tuvw │value label for `tuvw' │ -│ xyzA │value label for `xyzA' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str5 FGHI │value label for `FGHI' │ -│ pqrs │value label for `pqrs' │ -│ tuvw │value label for `tuvw' │ -│ xyzA │value label for `xyzA' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str6 JKLMNO │value label for `JKLMNO' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str7 JKLMNOP │value label for `JKLMNOP' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str8 JKLMNOPQ │value label for `JKLMNOPQ' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str9ж RSTUVWXYZ │value label for `RSTUVWXYZ' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str12 0123456789ab │value label for `0123456789ab' │ -│ cdefghijklmn │value label for `cdefghijklmn' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str16 EFGHIJKLMNOPQRST │value label for `EFGHIJKLMNOPQRST' │ -│ UVWXYZ0123456789 │value label for `UVWXYZ0123456789' with Cyrillic letters: `фхц'│ -│ opqrstuvwxyzABCD │value label for `opqrstuvwxyzABCD' │ -├────────────────────────────────┼───────────────────────────────────────────────────────────────┤ -│str17 abcdefghijklmnopq│value label for `abcdefghijklmnopq' │ -╰────────────────────────────────┴───────────────────────────────────────────────────────────────╯ + Value Labels +╭───────────────────────┬───────────────────────────────────────────────────────────────╮ +│Variable Value │ │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│num1 1 │один (in Russian) │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│num2 1 │one │ +│ 2 │two │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│num3 3 │three │ +│ 4 │four │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│num4 5 │five │ +│ 7 │seven │ +│ 8 │eight │ +│ 9 │nine │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│num5 6 │six │ +│ 7 │seven │ +│ 8 │eight │ +│ 10 │ten │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str1 a │value label for `a' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str2 bc │value label for `bc' │ +│ de │value label for `de' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str3 fgh │value label for `fgh' │ +│ ijk │value label for `ijk' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str4 BCDE │value label for `BCDE' │ +│ lmno │value label for `lmno' │ +│ tuvw │value label for `tuvw' │ +│ xyzA │value label for `xyzA' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str5 FGHI │value label for `FGHI' │ +│ pqrs │value label for `pqrs' │ +│ tuvw │value label for `tuvw' │ +│ xyzA │value label for `xyzA' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str6 JKLMNO │value label for `JKLMNO' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str7 JKLMNOP │value label for `JKLMNOP' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str8 JKLMNOPQ │value label for `JKLMNOPQ' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str9ж RSTUVWXYZ │value label for `RSTUVWXYZ' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str12 0123456789ab │value label for `0123456789ab' │ +│ cdefghijklmn │value label for `cdefghijklmn' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str16 EFGHIJKLMNOPQRST │value label for `EFGHIJKLMNOPQRST' │ +│ UVWXYZ0123456789 │value label for `UVWXYZ0123456789' with Cyrillic letters: `фхц'│ +│ opqrstuvwxyzABCD │value label for `opqrstuvwxyzABCD' │ +├───────────────────────┼───────────────────────────────────────────────────────────────┤ +│str17 abcdefghijklmnopq│value label for `abcdefghijklmnopq' │ +╰───────────────────────┴───────────────────────────────────────────────────────────────╯ diff --git a/rust/pspp/src/sys/testdata/variable_roles.expected b/rust/pspp/src/sys/testdata/variable_roles.expected index c8a21b0c09..a63a1d0fce 100644 --- a/rust/pspp/src/sys/testdata/variable_roles.expected +++ b/rust/pspp/src/sys/testdata/variable_roles.expected @@ -30,20 +30,20 @@ Unknown role "6". ╰─┴────────┴─────┴─────────────────┴─────────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭────────────────────────┬─────╮ -│Variable and Name │Value│ -├────────────────────────┼─────┤ -│i $@Role│0 │ -├────────────────────────┼─────┤ -│o $@Role│1 │ -├────────────────────────┼─────┤ -│b $@Role│2 │ -├────────────────────────┼─────┤ -│n $@Role│3 │ -├────────────────────────┼─────┤ -│p $@Role│4 │ -├────────────────────────┼─────┤ -│s $@Role│5 │ -├────────────────────────┼─────┤ -│x $@Role│6 │ -╰────────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│i $@Role │0 │ +├──────────────────┼─────┤ +│o $@Role │1 │ +├──────────────────┼─────┤ +│b $@Role │2 │ +├──────────────────┼─────┤ +│n $@Role │3 │ +├──────────────────┼─────┤ +│p $@Role │4 │ +├──────────────────┼─────┤ +│s $@Role │5 │ +├──────────────────┼─────┤ +│x $@Role │6 │ +╰──────────────────┴─────╯ diff --git a/rust/pspp/src/sys/testdata/variable_sets.expected b/rust/pspp/src/sys/testdata/variable_sets.expected index c2058c1dad..191fc2f3b9 100644 --- a/rust/pspp/src/sys/testdata/variable_sets.expected +++ b/rust/pspp/src/sys/testdata/variable_sets.expected @@ -30,28 +30,28 @@ │j │ 10│ │Nominal │Input│ 4│Left │A4 │A4 │ │ ╰──┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Variable Sets -╭─────────────────────────────┬────────╮ -│Variable Set and Position │Variable│ -├─────────────────────────────┼────────┤ -│Variable Set 1 1 │あ │ -│ 2 │b │ -│ 3 │c │ -├─────────────────────────────┼────────┤ -│vs2 1 │d │ -│ 2 │e │ -│ 3 │f │ -│ 4 │g │ -├─────────────────────────────┼────────┤ -│c 1 │h │ -│ 2 │i │ -│ 3 │j │ -├─────────────────────────────┼────────┤ -│d 1 │e │ -│ 2 │g │ -│ 3 │i │ -│ 4 │b │ -│ 5 │f │ -├─────────────────────────────┼────────┤ -│Empty Variable Set n/a│(empty) │ -╰─────────────────────────────┴────────╯ + Variable Sets +╭──────────────────────────┬────────╮ +│Variable Set and Position │Variable│ +├──────────────────────────┼────────┤ +│Variable Set 1 1 │あ │ +│ 2 │b │ +│ 3 │c │ +├──────────────────────────┼────────┤ +│vs2 1 │d │ +│ 2 │e │ +│ 3 │f │ +│ 4 │g │ +├──────────────────────────┼────────┤ +│c 1 │h │ +│ 2 │i │ +│ 3 │j │ +├──────────────────────────┼────────┤ +│d 1 │e │ +│ 2 │g │ +│ 3 │i │ +│ 4 │b │ +│ 5 │f │ +├──────────────────────────┼────────┤ +│Empty Variable Set n/a │(empty) │ +╰──────────────────────────┴────────╯ diff --git a/rust/pspp/src/sys/testdata/variable_sets_unknown_variable.expected b/rust/pspp/src/sys/testdata/variable_sets_unknown_variable.expected index 58b80d60af..62baaed631 100644 --- a/rust/pspp/src/sys/testdata/variable_sets_unknown_variable.expected +++ b/rust/pspp/src/sys/testdata/variable_sets_unknown_variable.expected @@ -34,16 +34,16 @@ Variable set "vs2" includes unknown variable foo. │j │ 10│ │Nominal │Input│ 4│Left │A4 │A4 │ │ ╰──┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Variable Sets -╭───────────────────────────┬────────╮ -│Variable Set and Position │Variable│ -├───────────────────────────┼────────┤ -│Variable Set 1 1│あ │ -│ 2│b │ -│ 3│c │ -├───────────────────────────┼────────┤ -│vs2 1│d │ -│ 2│e │ -│ 3│f │ -│ 4│g │ -╰───────────────────────────┴────────╯ + Variable Sets +╭──────────────────────────┬────────╮ +│Variable Set and Position │Variable│ +├──────────────────────────┼────────┤ +│Variable Set 1 1 │あ │ +│ 2 │b │ +│ 3 │c │ +├──────────────────────────┼────────┤ +│vs2 1 │d │ +│ 2 │e │ +│ 3 │f │ +│ 4 │g │ +╰──────────────────────────┴────────╯ diff --git a/rust/pspp/src/sys/testdata/variables_for_value_label_must_all_be_same_type.expected b/rust/pspp/src/sys/testdata/variables_for_value_label_must_all_be_same_type.expected index d63baca3c1..acdddd94c2 100644 --- a/rust/pspp/src/sys/testdata/variables_for_value_label_must_all_be_same_type.expected +++ b/rust/pspp/src/sys/testdata/variables_for_value_label_must_all_be_same_type.expected @@ -22,9 +22,9 @@ Warning at file offsets 0x110 to 0x118: In value label record: First variable in │num1│ 2│ │ │Input│ 8│Right │F8.0 │F8.0 │ │ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ - Value Labels -╭─────────────────────┬───╮ -│Variable Value │ │ -├─────────────────────┼───┤ -│str1 xyzzy │one│ -╰─────────────────────┴───╯ + Value Labels +╭───────────────┬───╮ +│Variable Value │ │ +├───────────────┼───┤ +│str1 xyzzy │one│ +╰───────────────┴───╯ diff --git a/rust/pspp/src/sys/testdata/write-numeric-simple.expected b/rust/pspp/src/sys/testdata/write-numeric-simple.expected index 5176fac17c..c35ad0985f 100644 --- a/rust/pspp/src/sys/testdata/write-numeric-simple.expected +++ b/rust/pspp/src/sys/testdata/write-numeric-simple.expected @@ -24,17 +24,17 @@ ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭────────────────────────┬─────╮ -│Variable and Name │Value│ -├────────────────────────┼─────┤ -│variable0 $@Role│0 │ -├────────────────────────┼─────┤ -│variable1 $@Role│0 │ -├────────────────────────┼─────┤ -│variable2 $@Role│0 │ -├────────────────────────┼─────┤ -│variable3 $@Role│0 │ -╰────────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│variable0 $@Role │0 │ +├──────────────────┼─────┤ +│variable1 $@Role │0 │ +├──────────────────┼─────┤ +│variable2 $@Role │0 │ +├──────────────────┼─────┤ +│variable3 $@Role │0 │ +╰──────────────────┴─────╯ ╭────┬─────────┬─────────┬─────────┬─────────╮ │Case│variable0│variable1│variable2│variable3│ diff --git a/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected b/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected index a5e1d5b6a8..7d4e43cc96 100644 --- a/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected +++ b/rust/pspp/src/sys/testdata/write-numeric-uncompressed.expected @@ -24,17 +24,17 @@ ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭────────────────────────┬─────╮ -│Variable and Name │Value│ -├────────────────────────┼─────┤ -│variable0 $@Role│0 │ -├────────────────────────┼─────┤ -│variable1 $@Role│0 │ -├────────────────────────┼─────┤ -│variable2 $@Role│0 │ -├────────────────────────┼─────┤ -│variable3 $@Role│0 │ -╰────────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│variable0 $@Role │0 │ +├──────────────────┼─────┤ +│variable1 $@Role │0 │ +├──────────────────┼─────┤ +│variable2 $@Role │0 │ +├──────────────────┼─────┤ +│variable3 $@Role │0 │ +╰──────────────────┴─────╯ ╭────┬─────────┬─────────┬─────────┬─────────╮ │Case│variable0│variable1│variable2│variable3│ diff --git a/rust/pspp/src/sys/testdata/write-numeric-zlib.expected b/rust/pspp/src/sys/testdata/write-numeric-zlib.expected index 6604a5d423..b6d9c98970 100644 --- a/rust/pspp/src/sys/testdata/write-numeric-zlib.expected +++ b/rust/pspp/src/sys/testdata/write-numeric-zlib.expected @@ -24,17 +24,17 @@ ╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭────────────────────────┬─────╮ -│Variable and Name │Value│ -├────────────────────────┼─────┤ -│variable0 $@Role│0 │ -├────────────────────────┼─────┤ -│variable1 $@Role│0 │ -├────────────────────────┼─────┤ -│variable2 $@Role│0 │ -├────────────────────────┼─────┤ -│variable3 $@Role│0 │ -╰────────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│variable0 $@Role │0 │ +├──────────────────┼─────┤ +│variable1 $@Role │0 │ +├──────────────────┼─────┤ +│variable2 $@Role │0 │ +├──────────────────┼─────┤ +│variable3 $@Role │0 │ +╰──────────────────┴─────╯ ╭────┬─────────┬─────────┬─────────┬─────────╮ │Case│variable0│variable1│variable2│variable3│ diff --git a/rust/pspp/src/sys/testdata/write-string-simple.expected b/rust/pspp/src/sys/testdata/write-string-simple.expected index d6c6fb22d7..a1413fc88b 100644 --- a/rust/pspp/src/sys/testdata/write-string-simple.expected +++ b/rust/pspp/src/sys/testdata/write-string-simple.expected @@ -25,19 +25,19 @@ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭────────────────────────┬─────╮ -│Variable and Name │Value│ -├────────────────────────┼─────┤ -│s1 $@Role│0 │ -├────────────────────────┼─────┤ -│s2 $@Role│0 │ -├────────────────────────┼─────┤ -│s3 $@Role│0 │ -├────────────────────────┼─────┤ -│s4 $@Role│0 │ -├────────────────────────┼─────┤ -│s566 $@Role│0 │ -╰────────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│s1 $@Role │0 │ +├──────────────────┼─────┤ +│s2 $@Role │0 │ +├──────────────────┼─────┤ +│s3 $@Role │0 │ +├──────────────────┼─────┤ +│s4 $@Role │0 │ +├──────────────────┼─────┤ +│s566 $@Role │0 │ +╰──────────────────┴─────╯ ╭────┬──┬──┬───┬─────────┬──────────────────────────────────────────────────────────────╮ │Case│s1│s2│ s3│ s4 │ s566 │ diff --git a/rust/pspp/src/sys/testdata/write-string-uncompressed.expected b/rust/pspp/src/sys/testdata/write-string-uncompressed.expected index 6383cb3329..17d39b4134 100644 --- a/rust/pspp/src/sys/testdata/write-string-uncompressed.expected +++ b/rust/pspp/src/sys/testdata/write-string-uncompressed.expected @@ -25,19 +25,19 @@ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭────────────────────────┬─────╮ -│Variable and Name │Value│ -├────────────────────────┼─────┤ -│s1 $@Role│0 │ -├────────────────────────┼─────┤ -│s2 $@Role│0 │ -├────────────────────────┼─────┤ -│s3 $@Role│0 │ -├────────────────────────┼─────┤ -│s4 $@Role│0 │ -├────────────────────────┼─────┤ -│s566 $@Role│0 │ -╰────────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│s1 $@Role │0 │ +├──────────────────┼─────┤ +│s2 $@Role │0 │ +├──────────────────┼─────┤ +│s3 $@Role │0 │ +├──────────────────┼─────┤ +│s4 $@Role │0 │ +├──────────────────┼─────┤ +│s566 $@Role │0 │ +╰──────────────────┴─────╯ ╭────┬──┬──┬───┬─────────┬──────────────────────────────────────────────────────────────╮ │Case│s1│s2│ s3│ s4 │ s566 │ diff --git a/rust/pspp/src/sys/testdata/write-string-zlib.expected b/rust/pspp/src/sys/testdata/write-string-zlib.expected index dd2566a226..9549d0636c 100644 --- a/rust/pspp/src/sys/testdata/write-string-zlib.expected +++ b/rust/pspp/src/sys/testdata/write-string-zlib.expected @@ -25,19 +25,19 @@ ╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯ Data File and Variable Attributes -╭────────────────────────┬─────╮ -│Variable and Name │Value│ -├────────────────────────┼─────┤ -│s1 $@Role│0 │ -├────────────────────────┼─────┤ -│s2 $@Role│0 │ -├────────────────────────┼─────┤ -│s3 $@Role│0 │ -├────────────────────────┼─────┤ -│s4 $@Role│0 │ -├────────────────────────┼─────┤ -│s566 $@Role│0 │ -╰────────────────────────┴─────╯ +╭──────────────────┬─────╮ +│Variable and Name │Value│ +├──────────────────┼─────┤ +│s1 $@Role │0 │ +├──────────────────┼─────┤ +│s2 $@Role │0 │ +├──────────────────┼─────┤ +│s3 $@Role │0 │ +├──────────────────┼─────┤ +│s4 $@Role │0 │ +├──────────────────┼─────┤ +│s566 $@Role │0 │ +╰──────────────────┴─────╯ ╭────┬──┬──┬───┬─────────┬──────────────────────────────────────────────────────────────╮ │Case│s1│s2│ s3│ s4 │ s566 │