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" <<EOF
> There are two blank lines below. And there is a trailing space:
> And another trailing space:
check "$expected" "$actual"
+# check rtrim
+cat >"$expected" <<EOF
+> There are two blank lines below. And there is a trailing space:
+> And another trailing space:
+>
+>
+EOF
+
+cat >"$MH_TEST_DIR/test.format" <<EOF
+body:component="> ",overflowtext=,overflowoffset=0,rtrim
+EOF
+
+"$mhl" -nomoreproc -form "$MH_TEST_DIR/test.format" `mhpath last` >"$actual"
+check "$expected" "$actual"
+
+
rm -f "$MH_TEST_DIR/test.format"
exit $failed