aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-02-01 12:43:20 +0000
committerJohn Ankarström <john@ankarstrom.se>2021-02-01 12:43:20 +0000
commitcd943ef6b47b00c73b3b544fb3ecb07c91511f0d (patch)
treedcafa327319ac3977278c408e6b2e5a8c94d0dd1
parent78260be6f8800d79308599d8376c0c4f7f7dda2a (diff)
downloadem-cd943ef6b47b00c73b3b544fb3ecb07c91511f0d.tar.gz
Fix hyperlink references containing equal signs
This could probably be done more elegantly, but it works.
-rwxr-xr-xem4
1 files changed, 3 insertions, 1 deletions
diff --git a/em b/em
index 649ebd6..0ad0f2b 100755
--- a/em
+++ b/em
@@ -15,7 +15,9 @@ hrefs=`'
for(href in $hrefs){
parts=`'=
'{echo $href}
- ref$parts(1)=$parts(2)
+ url=$parts(2)
+ for(part in $parts(3-)) url=$url^'='^$part
+ ref$parts(1)=$url
}
emparse $file