From f50a17cdabc370798d25e1ff46e49ee8159dccf0 Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Wed, 7 Sep 2016 18:27:34 +0200 Subject: [PATCH] tags_in_post(): bugfix for non-GNU 'sed' The 'sed' script in tags_in_post() used a GNU-specific feature, `\+`. This became unnecessary anyway after previous edits, so remove it. Also replace whitespace-comma-whitespace by newline directly instead of doing an intermediary replace. --- bb.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bb.sh b/bb.sh index 536efd2..4b55df5 100755 --- a/bb.sh +++ b/bb.sh @@ -770,8 +770,7 @@ tags_in_post() { sed -n "/^

$template_tags_line_header/ { s/^

$template_tags_line_header[[:blank:]]*// s/[[:blank:]]*<[^>]*>[[:blank:]]*//g - s/[[:blank:]]*,[[:blank:]]*/,/g - s/,\+/\\$newline/g + s/[[:blank:]]*,[[:blank:]]*/\\$newline/g p }" "$1" }