summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-12-08 21:55:27 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-08 21:59:43 +0100
commit444c52b1e90054355f4b5340aa04a9514a512bb7 (patch)
tree21b11c84212b098a219f2725835eadc415d5fee8 /bin
parentuid-gid.txt: Move stunnel to 341, request oprofile (492). (diff)
downloadapi-444c52b1e90054355f4b5340aa04a9514a512bb7.tar.gz
api-444c52b1e90054355f4b5340aa04a9514a512bb7.tar.bz2
api-444c52b1e90054355f4b5340aa04a9514a512bb7.zip
uidgid2wiki.awk: Suppress trailing whitespace in last column.
Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uidgid2wiki.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/uidgid2wiki.awk b/bin/uidgid2wiki.awk
index 2cc9f3bb..8b91db11 100755
--- a/bin/uidgid2wiki.awk
+++ b/bin/uidgid2wiki.awk
@@ -53,7 +53,7 @@ function md2wiki(str) {
}
# notes
$1=$2=$3=$4=""
- print "| " md2wiki(substr($0, 5))
+ print gensub(/[ \t]+$/, "", 1, "| " md2wiki(substr($0, 5)))
}
END {