Remove uneeded colors, fix point replacement issue. - pointtools - Simple point utilities to hold text presentations. HTML git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 809dd8d7ee8c87668c12a4535ed8f59f892631a6 DIR parent 4c5d14714b0fe979ecf2c9447a5fb9468d22425c HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sun, 26 Aug 2018 10:05:35 +0200 Remove uneeded colors, fix point replacement issue. Thanks to Gerrit Meyerheim <gerrit.meyerheim@pernixmail.de> ! Diffstat: M bin/md2point | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- DIR diff --git a/bin/md2point b/bin/md2point @@ -1,9 +1,5 @@ #!/bin/sh -# colors -reset="$(tput sgr0)" -quoteformat="$(tput setaf 6)" - mkfilename() { printf "%.4d-%s" "$1" "$2" | tr '# :.()/' '_' printf ".txt" @@ -37,7 +33,7 @@ do [ -n "$fname" ] && \ printf " %s\n" "$line" \ | sed 's, , ,' \ - | sed 's,\*,o,' >> $fname + | sed 's,^\([[:blank:]]*\)\*,\1o,' >> $fname ;; esac done