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:
parent
2a29b22a7a
commit
f50a17cdab
1 changed files with 1 additions and 2 deletions
3
bb.sh
3
bb.sh
|
@ -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…
Reference in a new issue