summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 00:18:59 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 00:18:59 -0500
commitc2883d8e6d3d4f85980e4e17390db917205fd039 (patch)
tree8e52a397c9db1aea5e55936263f14120ef9a0a39
parent1fce9fce0ac23a69597a057763b7d1d048750706 (diff)
fix double-escaped HTML in changelog
-rwxr-xr-xbin/auto-changelog9
-rw-r--r--src/changelog.md4
2 files changed, 10 insertions, 3 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/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g' -e 's/^ \S/ &/'
+ sed '
+/^\S/ {
+ s/&/\&amp;/g
+ s/</\&lt;/g
+ s/>/\&gt;/g
+}
+s/^ \S/ &/
+'
}
insert() {
diff --git a/src/changelog.md b/src/changelog.md
index 9bea5d1..87940b8 100644
--- a/src/changelog.md
+++ b/src/changelog.md
@@ -6,7 +6,7 @@ ChangeLog
remove unfinished sources
src/dnd/psionist-class.md | 1504 -------------------------------
- src/dnd/{psionist2.org =&gt; psionist.org} | 0
+ src/dnd/{psionist2.org => psionist.org} | 0
src/dnd/spell-gauntlet.org | 683 --------------
3 files changed, 2187 deletions(-)
@@ -15,7 +15,7 @@ remove unfinished sources
updated Psionist Title page
bin/pre-generate | 2 ++
- src/dnd/{Psionist2.org =&gt; psionist2.org} | 4 ++++
+ src/dnd/{Psionist2.org => psionist2.org} | 4 ++++
2 files changed, 6 insertions(+)
## 2017-01-14 Andrew Murrell &lt;merl@neo.andrewdm.me&gt;