on master help sign in
Remove tab-related text
commitd96ee2261f8a1c6624ec77e059f58eb76d1b483e authorsharkdp <davidpeter@web.de> dateThu 1 Nov 2018, 13:28 (8 years ago) parentdda27b2
25 files changed+165−275
tests/snapshots/output/changes.snapshot.txt+1−15 tests/snapshots/output/changes_grid.snapshot.txt+1−15 tests/snapshots/output/changes_grid_header.snapshot.txt+1−15 tests/snapshots/output/changes_grid_header_numbers.snapshot.txt+1−15 tests/snapshots/output/changes_grid_numbers.snapshot.txt+1−15 tests/snapshots/output/changes_header.snapshot.txt+1−15 tests/snapshots/output/changes_header_numbers.snapshot.txt+1−15 tests/snapshots/output/changes_numbers.snapshot.txt+1−15 tests/snapshots/output/full.snapshot.txt+1−15 tests/snapshots/output/grid.snapshot.txt−14 tests/snapshots/output/grid_header.snapshot.txt−14 tests/snapshots/output/grid_header_numbers.snapshot.txt−14 tests/snapshots/output/grid_numbers.snapshot.txt−14 tests/snapshots/output/header.snapshot.txt−14 tests/snapshots/output/header_numbers.snapshot.txt−14 tests/snapshots/output/numbers.snapshot.txt−14 tests/snapshots/output/plain.snapshot.txt−14 tests/snapshots/output/tabs_4.snapshot.txt+26 tests/snapshots/output/tabs_4_wrapped.snapshot.txt+26 tests/snapshots/output/tabs_8.snapshot.txt+26 tests/snapshots/output/tabs_8_wrapped.snapshot.txt+26 tests/snapshots/output/tabs_passthrough.snapshot.txt+26 tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt+26 tests/snapshots/sample.modified.rs−14 tests/snapshots/sample.rs−14
tests/snapshots/output/changes.snapshot.txt+1−15
@@ -16,21 +16,7 @@ _ fn main() {
1616 fn area(rectangle: &Rectangle) -> u32 {
1717 rectangle.width * rectangle.height
1818 }
19−
19++
2020+ fn perimeter(rectangle: &Rectangle) -> u32 {
2121+ (rectangle.width + rectangle.height) * 2
2222+ }
23−+
24− // Tab alignment:
25− /*
26− Indent
27− 1 2 3 4
28− 1 ?
29− 22 ?
30− 333 ?
31− 4444 ?
32− 55555 ?
33− 666666 ?
34− 7777777 ?
35− 88888888 ?
36−~ */
tests/snapshots/output/changes_grid.snapshot.txt+1−15
@@ -16,22 +16,8 @@ _ │ fn main() {
1616 │ fn area(rectangle: &Rectangle) -> u32 {
1717 │ rectangle.width * rectangle.height
1818 │ }
19− │
19++ │
2020+ │ fn perimeter(rectangle: &Rectangle) -> u32 {
2121+ │ (rectangle.width + rectangle.height) * 2
2222+ │ }
23−+ │
24− │ // Tab alignment:
25− │ /*
26− │ Indent
27− │ 1 2 3 4
28− │ 1 ?
29− │ 22 ?
30− │ 333 ?
31− │ 4444 ?
32− │ 55555 ?
33− │ 666666 ?
34− │ 7777777 ?
35− │ 88888888 ?
36−~ │ */
3723──┴─────────────────────────────────────────────────────────────────────────────
tests/snapshots/output/changes_grid_header.snapshot.txt+1−15
@@ -19,22 +19,8 @@ _ │ fn main() {
1919 │ fn area(rectangle: &Rectangle) -> u32 {
2020 │ rectangle.width * rectangle.height
2121 │ }
22− │
22++ │
2323+ │ fn perimeter(rectangle: &Rectangle) -> u32 {
2424+ │ (rectangle.width + rectangle.height) * 2
2525+ │ }
26−+ │
27− │ // Tab alignment:
28− │ /*
29− │ Indent
30− │ 1 2 3 4
31− │ 1 ?
32− │ 22 ?
33− │ 333 ?
34− │ 4444 ?
35− │ 55555 ?
36− │ 666666 ?
37− │ 7777777 ?
38− │ 88888888 ?
39−~ │ */
4026──┴─────────────────────────────────────────────────────────────────────────────
tests/snapshots/output/changes_grid_header_numbers.snapshot.txt+1−15
@@ -19,22 +19,8 @@
1919 16 │ fn area(rectangle: &Rectangle) -> u32 {
2020 17 │ rectangle.width * rectangle.height
2121 18 │ }
22− 19 │
22+ 19 + │
2323 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
2424 21 + │ (rectangle.width + rectangle.height) * 2
2525 22 + │ }
26− 23 + │
27− 24 │ // Tab alignment:
28− 25 │ /*
29− 26 │ Indent
30− 27 │ 1 2 3 4
31− 28 │ 1 ?
32− 29 │ 22 ?
33− 30 │ 333 ?
34− 31 │ 4444 ?
35− 32 │ 55555 ?
36− 33 │ 666666 ?
37− 34 │ 7777777 ?
38− 35 │ 88888888 ?
39− 36 ~ │ */
4026───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/changes_grid_numbers.snapshot.txt+1−15
@@ -16,22 +16,8 @@
1616 16 │ fn area(rectangle: &Rectangle) -> u32 {
1717 17 │ rectangle.width * rectangle.height
1818 18 │ }
19− 19 │
19+ 19 + │
2020 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
2121 21 + │ (rectangle.width + rectangle.height) * 2
2222 22 + │ }
23− 23 + │
24− 24 │ // Tab alignment:
25− 25 │ /*
26− 26 │ Indent
27− 27 │ 1 2 3 4
28− 28 │ 1 ?
29− 29 │ 22 ?
30− 30 │ 333 ?
31− 31 │ 4444 ?
32− 32 │ 55555 ?
33− 33 │ 666666 ?
34− 34 │ 7777777 ?
35− 35 │ 88888888 ?
36− 36 ~ │ */
3723───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/changes_header.snapshot.txt+1−15
@@ -17,21 +17,7 @@ _ fn main() {
1717 fn area(rectangle: &Rectangle) -> u32 {
1818 rectangle.width * rectangle.height
1919 }
20−
20++
2121+ fn perimeter(rectangle: &Rectangle) -> u32 {
2222+ (rectangle.width + rectangle.height) * 2
2323+ }
24−+
25− // Tab alignment:
26− /*
27− Indent
28− 1 2 3 4
29− 1 ?
30− 22 ?
31− 333 ?
32− 4444 ?
33− 55555 ?
34− 666666 ?
35− 7777777 ?
36− 88888888 ?
37−~ */
tests/snapshots/output/changes_header_numbers.snapshot.txt+1−15
@@ -17,21 +17,7 @@
1717 16 fn area(rectangle: &Rectangle) -> u32 {
1818 17 rectangle.width * rectangle.height
1919 18 }
20− 19
20+ 19 +
2121 20 + fn perimeter(rectangle: &Rectangle) -> u32 {
2222 21 + (rectangle.width + rectangle.height) * 2
2323 22 + }
24− 23 +
25− 24 // Tab alignment:
26− 25 /*
27− 26 Indent
28− 27 1 2 3 4
29− 28 1 ?
30− 29 22 ?
31− 30 333 ?
32− 31 4444 ?
33− 32 55555 ?
34− 33 666666 ?
35− 34 7777777 ?
36− 35 88888888 ?
37− 36 ~ */
tests/snapshots/output/changes_numbers.snapshot.txt+1−15
@@ -16,21 +16,7 @@
1616 16 fn area(rectangle: &Rectangle) -> u32 {
1717 17 rectangle.width * rectangle.height
1818 18 }
19− 19
19+ 19 +
2020 20 + fn perimeter(rectangle: &Rectangle) -> u32 {
2121 21 + (rectangle.width + rectangle.height) * 2
2222 22 + }
23− 23 +
24− 24 // Tab alignment:
25− 25 /*
26− 26 Indent
27− 27 1 2 3 4
28− 28 1 ?
29− 29 22 ?
30− 30 333 ?
31− 31 4444 ?
32− 32 55555 ?
33− 33 666666 ?
34− 34 7777777 ?
35− 35 88888888 ?
36− 36 ~ */
tests/snapshots/output/full.snapshot.txt+1−15
@@ -19,22 +19,8 @@
1919 16 │ fn area(rectangle: &Rectangle) -> u32 {
2020 17 │ rectangle.width * rectangle.height
2121 18 │ }
22− 19 │
22+ 19 + │
2323 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
2424 21 + │ (rectangle.width + rectangle.height) * 2
2525 22 + │ }
26− 23 + │
27− 24 │ // Tab alignment:
28− 25 │ /*
29− 26 │ Indent
30− 27 │ 1 2 3 4
31− 28 │ 1 ?
32− 29 │ 22 ?
33− 30 │ 333 ?
34− 31 │ 4444 ?
35− 32 │ 55555 ?
36− 33 │ 666666 ?
37− 34 │ 7777777 ?
38− 35 │ 88888888 ?
39− 36 ~ │ */
4026───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/grid.snapshot.txt−14
@@ -20,18 +20,4 @@ fn area(rectangle: &Rectangle) -> u32 {
2020fn perimeter(rectangle: &Rectangle) -> u32 {
2121 (rectangle.width + rectangle.height) * 2
2222}
23−
24−// Tab alignment:
25−/*
26− Indent
27− 1 2 3 4
28−1 ?
29−22 ?
30−333 ?
31−4444 ?
32−55555 ?
33−666666 ?
34−7777777 ?
35−88888888 ?
36−*/
3723────────────────────────────────────────────────────────────────────────────────
tests/snapshots/output/grid_header.snapshot.txt−14
@@ -23,18 +23,4 @@ fn area(rectangle: &Rectangle) -> u32 {
2323fn perimeter(rectangle: &Rectangle) -> u32 {
2424 (rectangle.width + rectangle.height) * 2
2525}
26−
27−// Tab alignment:
28−/*
29− Indent
30− 1 2 3 4
31−1 ?
32−22 ?
33−333 ?
34−4444 ?
35−55555 ?
36−666666 ?
37−7777777 ?
38−88888888 ?
39−*/
4026────────────────────────────────────────────────────────────────────────────────
tests/snapshots/output/grid_header_numbers.snapshot.txt−14
@@ -23,18 +23,4 @@
2323 20 │ fn perimeter(rectangle: &Rectangle) -> u32 {
2424 21 │ (rectangle.width + rectangle.height) * 2
2525 22 │ }
26− 23 │
27− 24 │ // Tab alignment:
28− 25 │ /*
29− 26 │ Indent
30− 27 │ 1 2 3 4
31− 28 │ 1 ?
32− 29 │ 22 ?
33− 30 │ 333 ?
34− 31 │ 4444 ?
35− 32 │ 55555 ?
36− 33 │ 666666 ?
37− 34 │ 7777777 ?
38− 35 │ 88888888 ?
39− 36 │ */
4026─────┴──────────────────────────────────────────────────────────────────────────
tests/snapshots/output/grid_numbers.snapshot.txt−14
@@ -20,18 +20,4 @@
2020 20 │ fn perimeter(rectangle: &Rectangle) -> u32 {
2121 21 │ (rectangle.width + rectangle.height) * 2
2222 22 │ }
23− 23 │
24− 24 │ // Tab alignment:
25− 25 │ /*
26− 26 │ Indent
27− 27 │ 1 2 3 4
28− 28 │ 1 ?
29− 29 │ 22 ?
30− 30 │ 333 ?
31− 31 │ 4444 ?
32− 32 │ 55555 ?
33− 33 │ 666666 ?
34− 34 │ 7777777 ?
35− 35 │ 88888888 ?
36− 36 │ */
3723─────┴──────────────────────────────────────────────────────────────────────────
tests/snapshots/output/header.snapshot.txt−14
@@ -21,17 +21,3 @@ fn area(rectangle: &Rectangle) -> u32 {
2121fn perimeter(rectangle: &Rectangle) -> u32 {
2222 (rectangle.width + rectangle.height) * 2
2323}
24−
25−// Tab alignment:
26−/*
27− Indent
28− 1 2 3 4
29−1 ?
30−22 ?
31−333 ?
32−4444 ?
33−55555 ?
34−666666 ?
35−7777777 ?
36−88888888 ?
37−*/
tests/snapshots/output/header_numbers.snapshot.txt−14
@@ -21,17 +21,3 @@
2121 20 fn perimeter(rectangle: &Rectangle) -> u32 {
2222 21 (rectangle.width + rectangle.height) * 2
2323 22 }
24− 23
25− 24 // Tab alignment:
26− 25 /*
27− 26 Indent
28− 27 1 2 3 4
29− 28 1 ?
30− 29 22 ?
31− 30 333 ?
32− 31 4444 ?
33− 32 55555 ?
34− 33 666666 ?
35− 34 7777777 ?
36− 35 88888888 ?
37− 36 */
tests/snapshots/output/numbers.snapshot.txt−14
@@ -20,17 +20,3 @@
2020 20 fn perimeter(rectangle: &Rectangle) -> u32 {
2121 21 (rectangle.width + rectangle.height) * 2
2222 22 }
23− 23
24− 24 // Tab alignment:
25− 25 /*
26− 26 Indent
27− 27 1 2 3 4
28− 28 1 ?
29− 29 22 ?
30− 30 333 ?
31− 31 4444 ?
32− 32 55555 ?
33− 33 666666 ?
34− 34 7777777 ?
35− 35 88888888 ?
36− 36 */
tests/snapshots/output/plain.snapshot.txt−14
@@ -20,17 +20,3 @@ fn area(rectangle: &Rectangle) -> u32 {
2020fn perimeter(rectangle: &Rectangle) -> u32 {
2121 (rectangle.width + rectangle.height) * 2
2222}
23−
24−// Tab alignment:
25−/*
26− Indent
27− 1 2 3 4
28−1 ?
29−22 ?
30−333 ?
31−4444 ?
32−55555 ?
33−666666 ?
34−7777777 ?
35−88888888 ?
36−*/
tests/snapshots/output/tabs_4.snapshot.txtnew file+26
@@ -0,0 +1,26 @@
1+───────┬────────────────────────────────────────────────────────────────────────
2+ │ File: sample.rs
3+───────┼────────────────────────────────────────────────────────────────────────
4+ 1 │ struct Rectangle {
5+ 2 │ width: u32,
6+ 3 │ height: u32,
7+ 4 │ }
8+ 5 │
9+ 6 _ │ fn main() {
10+ 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11+ 8 │
12+ 9 │ println!(
13+ 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14+ 11 ~ │ perimeter(&rect1)
15+ 12 │ );
16+ 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
26+───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_4_wrapped.snapshot.txtnew file+26
@@ -0,0 +1,26 @@
1+───────┬────────────────────────────────────────────────────────────────────────
2+ │ File: sample.rs
3+───────┼────────────────────────────────────────────────────────────────────────
4+ 1 │ struct Rectangle {
5+ 2 │ width: u32,
6+ 3 │ height: u32,
7+ 4 │ }
8+ 5 │
9+ 6 _ │ fn main() {
10+ 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11+ 8 │
12+ 9 │ println!(
13+ 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14+ 11 ~ │ perimeter(&rect1)
15+ 12 │ );
16+ 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
26+───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_8.snapshot.txtnew file+26
@@ -0,0 +1,26 @@
1+───────┬────────────────────────────────────────────────────────────────────────
2+ │ File: sample.rs
3+───────┼────────────────────────────────────────────────────────────────────────
4+ 1 │ struct Rectangle {
5+ 2 │ width: u32,
6+ 3 │ height: u32,
7+ 4 │ }
8+ 5 │
9+ 6 _ │ fn main() {
10+ 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11+ 8 │
12+ 9 │ println!(
13+ 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14+ 11 ~ │ perimeter(&rect1)
15+ 12 │ );
16+ 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
26+───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_8_wrapped.snapshot.txtnew file+26
@@ -0,0 +1,26 @@
1+───────┬────────────────────────────────────────────────────────────────────────
2+ │ File: sample.rs
3+───────┼────────────────────────────────────────────────────────────────────────
4+ 1 │ struct Rectangle {
5+ 2 │ width: u32,
6+ 3 │ height: u32,
7+ 4 │ }
8+ 5 │
9+ 6 _ │ fn main() {
10+ 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11+ 8 │
12+ 9 │ println!(
13+ 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14+ 11 ~ │ perimeter(&rect1)
15+ 12 │ );
16+ 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
26+───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_passthrough.snapshot.txtnew file+26
@@ -0,0 +1,26 @@
1+───────┬────────────────────────────────────────────────────────────────────────
2+ │ File: sample.rs
3+───────┼────────────────────────────────────────────────────────────────────────
4+ 1 │ struct Rectangle {
5+ 2 │ width: u32,
6+ 3 │ height: u32,
7+ 4 │ }
8+ 5 │
9+ 6 _ │ fn main() {
10+ 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11+ 8 │
12+ 9 │ println!(
13+ 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14+ 11 ~ │ perimeter(&rect1)
15+ 12 │ );
16+ 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
26+───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txtnew file+26
@@ -0,0 +1,26 @@
1+───────┬────────────────────────────────────────────────────────────────────────
2+ │ File: sample.rs
3+───────┼────────────────────────────────────────────────────────────────────────
4+ 1 │ struct Rectangle {
5+ 2 │ width: u32,
6+ 3 │ height: u32,
7+ 4 │ }
8+ 5 │
9+ 6 _ │ fn main() {
10+ 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11+ 8 │
12+ 9 │ println!(
13+ 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14+ 11 ~ │ perimeter(&rect1)
15+ 12 │ );
16+ 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
26+───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/sample.modified.rs−14
@@ -20,17 +20,3 @@ fn area(rectangle: &Rectangle) -> u32 {
2020fn perimeter(rectangle: &Rectangle) -> u32 {
2121 (rectangle.width + rectangle.height) * 2
2222}
23−
24−// Tab alignment:
25−/*
26− Indent
27− 1 2 3 4
28−1 ?
29−22 ?
30−333 ?
31−4444 ?
32−55555 ?
33−666666 ?
34−7777777 ?
35−88888888 ?
36−*/
tests/snapshots/sample.rs−14
@@ -16,17 +16,3 @@ fn main() {
1616fn area(rectangle: &Rectangle) -> u32 {
1717 rectangle.width * rectangle.height
1818}
19−
20−// Tab alignment:
21−/*
22− Indent
23− 1 2 3 4
24−1 ?
25−22 ?
26−333 ?
27−4444 ?
28−55555 ?
29−666666 ?
30−7777777 ?
31−88888888 ?
32−*/