From: David Levine Date: Sat, 14 Feb 2015 05:30:03 +0000 (-0600) Subject: Filter converted text/html to remove blank lines and leading space X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2f1e191a200cfea77eb6f4960c74776262726ff8?hp=00b9a11263d3925eb56aaff748f764bf1ecbdc6a Filter converted text/html to remove blank lines and leading space that lynx inserts. Also, changed ISO-8859-1 to US-ASCII because it is, so it doesn't need to be converted. --- diff --git a/test/mhshow/test-subpart b/test/mhshow/test-subpart index 28bca944..27fb9077 100755 --- a/test/mhshow/test-subpart +++ b/test/mhshow/test-subpart @@ -75,7 +75,7 @@ Content-type: multipart/alternative; boundary="BoundaryAlternative1" --BoundaryAlternative1 -Content-type: text/plain; charset=ISO-8859-1; format=flowed +Content-type: text/plain; charset=US-ASCII; format=flowed Content-transfer-encoding: 8bit This is the body text/plain part. @@ -115,7 +115,9 @@ This is the text/html body part. EOF # check it -run_prog mhshow -part 1.1.1 -form mhl.null $msgnum > $actual 2>&1 +# The sed command removes blank lines and leading space that lynx inserts. +run_prog mhshow -part 1.1.1 -form mhl.null $msgnum | + sed '/^$/D; s/^ *//;' > $actual 2>&1 check "$expected" "$actual" : part 1.1.1 # Write the expected output.