Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-06 09:11:00 +0200
committerErich Eckner <git@eckner.net>2017-09-06 09:11:00 +0200
commitae05b79ccc0d4cae8c0f0da298369ddb634d9818 (patch)
treedc98f065c2562d582f40570fb0a2b2d8d1040e18
parent18187f8f540a80aae22b98087b90579b013d6a35 (diff)
bin/interpret-mail: remove linebreaks (more) correctly
-rwxr-xr-xbin/interpret-mail16
1 files changed, 6 insertions, 10 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index 1b3d0d3..effca9c 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -98,18 +98,14 @@ sed -n '
p
' "${tmp_dir}/plain-content" |
sed '
- :a
- /[:=]\s*$/{
+ :start_loop
+ $!{
N
- s/:\s*\n/: /
- ta
- s/=\n//g
- ta
+ bstart_loop
}
- :b
- N
- s/\n\([^ :]\+\(\s\|\n\)\)/ \1/
- tb
+ s/=\s*\n//g
+ s/:\s*\n/: /g
+ s/\n\(\S\+[^: ]\(\s\|\n\|$\)\)/ \1/g
' > \
"${tmp_dir}/raw-content"