projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fail in pick if a massage of -thread has no thread-id
[mmh]
/
test
/
tests
/
show
/
test-longlines
diff --git
a/test/tests/show/test-longlines
b/test/tests/show/test-longlines
index
138c724
..
f6ae126
100644
(file)
--- a/
test/tests/show/test-longlines
+++ b/
test/tests/show/test-longlines
@@
-13,13
+13,11
@@
actual=$MH_TEST_DIR/$$.actual
genlongsubject() {
len="${1:-998}"
awk -v len="$len" 'BEGIN {
genlongsubject() {
len="${1:-998}"
awk -v len="$len" 'BEGIN {
- prefix = "Subject: " len
+ prefix = "Subject: " len " "
while (i++<len) {
s = s "x"
}
while (i++<len) {
s = s "x"
}
- re = ".{" length(prefix) "}."
- sub(re, prefix " ", s)
- print s
+ print prefix substr(s, length(prefix) + 1)
}'
}
}'
}
@@
-28,6
+26,11
@@
addcr() {
}
}
+# Ensure lines won't get folded
+echo "mhl: -width 2000" >> "$MMH/profile"
+trap 'printf "/^mhl:/d\nw\nq\n" | ed - "$MMH/profile"' 0 1 2 15
+
+
len=997
# Write message with long header line
len=997
# Write message with long header line