X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ea0a6d8112a918809bd03d8126411040d22f2bb8..eb433de218fc35876757c356fcb709d9f9d10d09:/test/mhl/test-mhl-flags diff --git a/test/mhl/test-mhl-flags b/test/mhl/test-mhl-flags index 36a73236..b458a31e 100755 --- a/test/mhl/test-mhl-flags +++ b/test/mhl/test-mhl-flags @@ -30,7 +30,8 @@ And another trailing space: EOF -# check that blank lines don't end with whitepace +# check nortrim (default), and that trailing whitespace in a +# component is trimmed when filtering blank lines cat >"$expected" < There are two blank lines below. And there is a trailing space: > And another trailing space: @@ -46,5 +47,21 @@ EOF check "$expected" "$actual" +# check rtrim +cat >"$expected" < There are two blank lines below. And there is a trailing space: +> And another trailing space: +> +> +EOF + +cat >"$MH_TEST_DIR/test.format" <"$actual" +check "$expected" "$actual" + + rm -f "$MH_TEST_DIR/test.format" exit $failed