diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-23 00:18:59 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-23 00:18:59 -0500 |
commit | c2883d8e6d3d4f85980e4e17390db917205fd039 (patch) | |
tree | 8e52a397c9db1aea5e55936263f14120ef9a0a39 /bin | |
parent | 1fce9fce0ac23a69597a057763b7d1d048750706 (diff) |
fix double-escaped HTML in changelog
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/auto-changelog | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/auto-changelog b/bin/auto-changelog index 64d15e9..d672b5f 100755 --- a/bin/auto-changelog +++ b/bin/auto-changelog @@ -18,7 +18,14 @@ generate-entry() { } html_escape() { - sed -e 's/&/\&/g' -e 's/</\</g' -e 's/>/\>/g' -e 's/^ \S/ &/' + sed ' +/^\S/ { + s/&/\&/g + s/</\</g + s/>/\>/g +} +s/^ \S/ &/ +' } insert() { |