Browse Source

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.
pull/116/head
Martijn Dekker 5 years ago
parent
commit
f50a17cdab
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      bb.sh

+ 1
- 2
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"
}


Loading…
Cancel
Save