]> diplodocus.org Git - nmh/blobdiff - test/common.sh.in
Added -eval 'set document.browse.margin_width = 0' to elinks
[nmh] / test / common.sh.in
index 49e1c48ec847568a4d18addf6522b53ea3d8aa6a..94b41906c791902b61ef97781065968e7b32aee0 100644 (file)
@@ -128,7 +128,9 @@ check_for_hard_links () {
 
 #### Filter that squeezes blank lines, emulating GNU cat -s.
 squeeze_lines() {
-  awk '!length() && e {next} {e = !length()} 1'
+  awk 'length($0) == 0 && e == 1 { next }
+          { e = length($0) == 0 }
+          { print }'
 }
 
 #### Filter that inserts initial whitespace and converts non-breakable