From cb769c62e55599e9f980001830bc61d9fcaa64a9 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 8 Feb 2022 09:18:08 -0500 Subject: WHITESPACE ONLY -- expand tabs in source code This comment expands all tabs using an 8-character tab-width. You should ignore this commit when using git blame or use git blame -w. In the early days, I used to use tabs where possible for indentation, since emacs did this automatically. In recent years, I have switched to only using spaces, which means qpdf source code has been a mixture of spaces and tabs. I have avoided cleaning this up because of not wanting gratuitous whitespaces change to cloud the output of git blame, but I changed my mind after discussing with users who view qpdf source code in editors/IDEs that have other tab widths by default and in light of the fact that I am planning to start applying automatic code formatting soon. --- libtests/qtest/ascii85.test | 14 ++++++------ libtests/qtest/bits.test | 8 +++---- libtests/qtest/buffer.test | 8 +++---- libtests/qtest/cxx11.test | 8 +++---- libtests/qtest/flate.test | 24 ++++++++++---------- libtests/qtest/hex.test | 12 +++++----- libtests/qtest/input_source.test | 6 ++--- libtests/qtest/json.test | 4 ++-- libtests/qtest/lzw.test | 20 ++++++++--------- libtests/qtest/matrix.test | 4 ++-- libtests/qtest/nntree.test | 6 ++--- libtests/qtest/ph.test | 8 +++---- libtests/qtest/predictors.test | 48 ++++++++++++++++++++-------------------- libtests/qtest/qintc.test | 8 +++---- libtests/qtest/qutil.test | 8 +++---- libtests/qtest/sparse_array.test | 4 ++-- 16 files changed, 95 insertions(+), 95 deletions(-) (limited to 'libtests/qtest') diff --git a/libtests/qtest/ascii85.test b/libtests/qtest/ascii85.test index 7ea3ee42..53977619 100644 --- a/libtests/qtest/ascii85.test +++ b/libtests/qtest/ascii85.test @@ -10,14 +10,14 @@ require TestDriver; my $td = new TestDriver('ascii85'); $td->runtest("decode", - {$td->COMMAND => "ascii85 < base85.in"}, - {$td->FILE => "binary.out", - $td->EXIT_STATUS => 0}); + {$td->COMMAND => "ascii85 < base85.in"}, + {$td->FILE => "binary.out", + $td->EXIT_STATUS => 0}); $td->runtest("partial decode", - {$td->COMMAND => "echo '\@<5skEHbu7\$3~>' | ascii85"}, - {$td->STRING => "asdfqwer\n", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "echo '\@<5skEHbu7\$3~>' | ascii85"}, + {$td->STRING => "asdfqwer\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->report(2); diff --git a/libtests/qtest/bits.test b/libtests/qtest/bits.test index 08bee707..0fa3df6d 100644 --- a/libtests/qtest/bits.test +++ b/libtests/qtest/bits.test @@ -10,9 +10,9 @@ require TestDriver; my $td = new TestDriver('bits'); $td->runtest("bits", - {$td->COMMAND => "bits"}, - {$td->FILE => "bits.out", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "bits"}, + {$td->FILE => "bits.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->report(1); diff --git a/libtests/qtest/buffer.test b/libtests/qtest/buffer.test index 38da9fc3..f19461e1 100644 --- a/libtests/qtest/buffer.test +++ b/libtests/qtest/buffer.test @@ -10,9 +10,9 @@ require TestDriver; my $td = new TestDriver('buffer'); $td->runtest("buffer", - {$td->COMMAND => "buffer"}, - {$td->FILE => "buffer.out", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "buffer"}, + {$td->FILE => "buffer.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->report(1); diff --git a/libtests/qtest/cxx11.test b/libtests/qtest/cxx11.test index 5efbd87f..2ed9059d 100644 --- a/libtests/qtest/cxx11.test +++ b/libtests/qtest/cxx11.test @@ -8,9 +8,9 @@ require TestDriver; my $td = new TestDriver('c++-11'); $td->runtest("C++-11", - {$td->COMMAND => "cxx11"}, - {$td->STRING => "assertions passed\n", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "cxx11"}, + {$td->STRING => "assertions passed\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->report(1); diff --git a/libtests/qtest/flate.test b/libtests/qtest/flate.test index b7acae60..3d99bc3a 100644 --- a/libtests/qtest/flate.test +++ b/libtests/qtest/flate.test @@ -32,24 +32,24 @@ close(F); check_file("farbage", "a6449c61db5b0645c0693b7560b77a60"); $td->runtest("run driver", - {$td->COMMAND => "flate farbage"},, - {$td->STRING => "bytes written to o3: 100010\ndone\n", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "flate farbage"},, + {$td->STRING => "bytes written to o3: 100010\ndone\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); check_file("farbage", "a6449c61db5b0645c0693b7560b77a60"); $td->runtest("compressed file correct", - {$td->FILE => "farbage.1"}, - {$td->FILE => "compressed"}); + {$td->FILE => "farbage.1"}, + {$td->FILE => "compressed"}); $td->runtest("uncompress filter works", - {$td->FILE => "farbage"}, - {$td->FILE => "farbage.2"}); + {$td->FILE => "farbage"}, + {$td->FILE => "farbage.2"}); $td->runtest("double filter works", - {$td->FILE => "farbage"}, - {$td->FILE => "farbage.3"}); + {$td->FILE => "farbage"}, + {$td->FILE => "farbage.3"}); cleanup(); @@ -69,6 +69,6 @@ sub check_file close(F); my $result = $md5->hexdigest; $td->runtest("check $file", - {$td->STRING => "$result\n"}, - {$td->STRING => "$sum\n"}); + {$td->STRING => "$result\n"}, + {$td->STRING => "$sum\n"}); } diff --git a/libtests/qtest/hex.test b/libtests/qtest/hex.test index 32ec84b5..9dba0ef6 100644 --- a/libtests/qtest/hex.test +++ b/libtests/qtest/hex.test @@ -10,13 +10,13 @@ require TestDriver; my $td = new TestDriver('hex'); $td->runtest("decode", - {$td->COMMAND => "hex < hex.in"}, - {$td->FILE => "binary.out", - $td->EXIT_STATUS => 0}); + {$td->COMMAND => "hex < hex.in"}, + {$td->FILE => "binary.out", + $td->EXIT_STATUS => 0}); $td->runtest("partial decode", - {$td->COMMAND => "echo '7a65726F203D203>' | hex"}, - {$td->STRING => "zero = 0", - $td->EXIT_STATUS => 0}); + {$td->COMMAND => "echo '7a65726F203D203>' | hex"}, + {$td->STRING => "zero = 0", + $td->EXIT_STATUS => 0}); $td->report(2); diff --git a/libtests/qtest/input_source.test b/libtests/qtest/input_source.test index 89a1c21a..54a7b0f9 100644 --- a/libtests/qtest/input_source.test +++ b/libtests/qtest/input_source.test @@ -12,9 +12,9 @@ my $td = new TestDriver('InputSource'); cleanup(); $td->runtest("input source tests", - {$td->COMMAND => "input_source"}, - {$td->FILE => "input_source.out", - $td->EXIT_STATUS => 0}, + {$td->COMMAND => "input_source"}, + {$td->FILE => "input_source.out", + $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); cleanup(); diff --git a/libtests/qtest/json.test b/libtests/qtest/json.test index b62994d3..d9a72234 100644 --- a/libtests/qtest/json.test +++ b/libtests/qtest/json.test @@ -10,8 +10,8 @@ require TestDriver; my $td = new TestDriver('json'); $td->runtest("json", - {$td->COMMAND => "json"}, - {$td->FILE => "json.out", $td->EXIT_STATUS => 0}, + {$td->COMMAND => "json"}, + {$td->FILE => "json.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); $td->report(1); diff --git a/libtests/qtest/lzw.test b/libtests/qtest/lzw.test index e6142115..1e6c1d3d 100644 --- a/libtests/qtest/lzw.test +++ b/libtests/qtest/lzw.test @@ -12,22 +12,22 @@ my $td = new TestDriver('lzw'); cleanup(); $td->runtest("decode: early code change", - {$td->COMMAND => "lzw lzw1.in tmp"}, - {$td->STRING => "", - $td->EXIT_STATUS => 0}); + {$td->COMMAND => "lzw lzw1.in tmp"}, + {$td->STRING => "", + $td->EXIT_STATUS => 0}); $td->runtest("check output", - {$td->FILE => "tmp"}, - {$td->FILE => "lzw1.out"}); + {$td->FILE => "tmp"}, + {$td->FILE => "lzw1.out"}); $td->runtest("decode: no early code change", - {$td->COMMAND => "lzw lzw2.in tmp --no-early-code-change"}, - {$td->STRING => "", - $td->EXIT_STATUS => 0}); + {$td->COMMAND => "lzw lzw2.in tmp --no-early-code-change"}, + {$td->STRING => "", + $td->EXIT_STATUS => 0}); $td->runtest("check output", - {$td->FILE => "tmp"}, - {$td->FILE => "lzw2.out"}); + {$td->FILE => "tmp"}, + {$td->FILE => "lzw2.out"}); cleanup(); diff --git a/libtests/qtest/matrix.test b/libtests/qtest/matrix.test index 90522f9c..b0d4da8c 100644 --- a/libtests/qtest/matrix.test +++ b/libtests/qtest/matrix.test @@ -8,8 +8,8 @@ require TestDriver; my $td = new TestDriver('matrix'); $td->runtest("matrix", - {$td->COMMAND => "matrix"}, - {$td->STRING => "matrix tests done\n", $td->EXIT_STATUS => 0}, + {$td->COMMAND => "matrix"}, + {$td->STRING => "matrix tests done\n", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); $td->report(1); diff --git a/libtests/qtest/nntree.test b/libtests/qtest/nntree.test index a1dcb957..69f96868 100644 --- a/libtests/qtest/nntree.test +++ b/libtests/qtest/nntree.test @@ -10,8 +10,8 @@ require TestDriver; my $td = new TestDriver('nntree'); $td->runtest("nntree", - {$td->COMMAND => "nntree"}, - {$td->FILE => "nntree.out", $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "nntree"}, + {$td->FILE => "nntree.out", $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->report(1); diff --git a/libtests/qtest/ph.test b/libtests/qtest/ph.test index 9c0ffb8e..565b29a6 100644 --- a/libtests/qtest/ph.test +++ b/libtests/qtest/ph.test @@ -10,9 +10,9 @@ require TestDriver; my $td = new TestDriver('ph'); $td->runtest("PointerHolder", - {$td->COMMAND => "pointer_holder"}, - {$td->FILE => "ph.out", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "pointer_holder"}, + {$td->FILE => "ph.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->report(1); diff --git a/libtests/qtest/predictors.test b/libtests/qtest/predictors.test index 98961d1a..45b995e9 100644 --- a/libtests/qtest/predictors.test +++ b/libtests/qtest/predictors.test @@ -14,44 +14,44 @@ my $td = new TestDriver('predictors'); cleanup(); $td->runtest("decode columns = 4", - {$td->COMMAND => "predictors png decode in1 4 1 8"}, - {$td->STRING => "done\n", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "predictors png decode in1 4 1 8"}, + {$td->STRING => "done\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->runtest("check output", - {$td->FILE => "out"}, - {$td->FILE => "out1"}); + {$td->FILE => "out"}, + {$td->FILE => "out1"}); $td->runtest("decode columns = 5", - {$td->COMMAND => "predictors png decode in2 5 1 8"}, - {$td->STRING => "done\n", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "predictors png decode in2 5 1 8"}, + {$td->STRING => "done\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->runtest("check output", - {$td->FILE => "out"}, - {$td->FILE => "out2"}); + {$td->FILE => "out"}, + {$td->FILE => "out2"}); $td->runtest("encode columns = 4", - {$td->COMMAND => "predictors png encode out1 4 1 8"}, - {$td->STRING => "done\n", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "predictors png encode out1 4 1 8"}, + {$td->STRING => "done\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->runtest("check output", - {$td->FILE => "out"}, - {$td->FILE => "in1"}); + {$td->FILE => "out"}, + {$td->FILE => "in1"}); $td->runtest("encode columns = 5", - {$td->COMMAND => "predictors png encode out2 5 1 8"}, - {$td->STRING => "done\n", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES); + {$td->COMMAND => "predictors png encode out2 5 1 8"}, + {$td->STRING => "done\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); $td->runtest("check output", - {$td->FILE => "out"}, - {$td->FILE => "in2"}); + {$td->FILE => "out"}, + {$td->FILE => "in2"}); my @other_png = ( '01--32-3-16', diff --git a/libtests/qtest/qintc.test b/libtests/qtest/qintc.test index 4b2dc3a5..423d6ffd 100644 --- a/libtests/qtest/qintc.test +++ b/libtests/qtest/qintc.test @@ -10,9 +10,9 @@ require TestDriver; my $td = new TestDriver('qintc'); $td->runtest("QINTC", - {$td->COMMAND => "qintc"}, - {$td->FILE => "qintc.out", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES | $td->RM_WS_ONLY_LINES); + {$td->COMMAND => "qintc"}, + {$td->FILE => "qintc.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES | $td->RM_WS_ONLY_LINES); $td->report(1); diff --git a/libtests/qtest/qutil.test b/libtests/qtest/qutil.test index 3487236c..9e93bbf9 100644 --- a/libtests/qtest/qutil.test +++ b/libtests/qtest/qutil.test @@ -10,10 +10,10 @@ require TestDriver; my $td = new TestDriver('qutil'); $td->runtest("QUtil", - {$td->COMMAND => "qutil"}, - {$td->FILE => "qutil.out", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES | $td->RM_WS_ONLY_LINES); + {$td->COMMAND => "qutil"}, + {$td->FILE => "qutil.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES | $td->RM_WS_ONLY_LINES); my $mfw = `main_from_wmain`; if ($mfw eq '') diff --git a/libtests/qtest/sparse_array.test b/libtests/qtest/sparse_array.test index c3535d85..a6448c3f 100644 --- a/libtests/qtest/sparse_array.test +++ b/libtests/qtest/sparse_array.test @@ -8,8 +8,8 @@ require TestDriver; my $td = new TestDriver('sparse array'); $td->runtest("sparse_array", - {$td->COMMAND => "sparse_array"}, - {$td->STRING => "sparse array tests done\n", + {$td->COMMAND => "sparse_array"}, + {$td->STRING => "sparse array tests done\n", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); -- cgit v1.2.3-70-g09d2