]> diplodocus.org Git - nmh/blobdiff - test/mhfixmsg/test-mhfixmsg
If mbtowc() fails to handle a character, replace the offending character
[nmh] / test / mhfixmsg / test-mhfixmsg
index db45fc61d50088bcdbbf0ba79c5e1f40a8258b49..851c3c97f655918c71c3e05f9a1e84215d7048af 100755 (executable)
@@ -643,10 +643,10 @@ d><td align=3D"right"><font face=3D"Arial, Helvetica, sans-serif" color=3D"=
 EOF
 
 if [ $can_reformat_texthtml -eq 1 ]; then
+  #### lynx inserts multiple blank lines, so use uniq to squeeze them.
   #### Truncate to avoid comparing the html portion because it can
   #### get reformatted.
-  #### lynx inserts multiple blank lines, so use uniq to squeeze them.
-  mhfixmsg last -outfile - | head -22 | uniq >"$actual"
+  mhfixmsg last -outfile - | uniq | head -22 >"$actual"
   check "$expected" "$actual" 'ignore space'
 else
   cp -p "$MH_TEST_DIR/Mail/inbox/15" "$MH_TEST_DIR/Mail/inbox/15.backup"