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.
This commit is contained in:
Martijn Dekker 2016-09-07 18:27:34 +02:00
parent 2a29b22a7a
commit f50a17cdab

3
bb.sh
View file

@ -770,8 +770,7 @@ tags_in_post() {
sed -n "/^<p>$template_tags_line_header/ {
s/^<p>$template_tags_line_header[[:blank:]]*//
s/[[:blank:]]*<[^>]*>[[:blank:]]*//g
s/[[:blank:]]*,[[:blank:]]*/,/g
s/,\+/\\$newline/g
s/[[:blank:]]*,[[:blank:]]*/\\$newline/g
p
}" "$1"
}