summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-05 00:22:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-05 00:22:51 -0800
commit60d2011b15a4c41a855f87ef72b4f6dec8e6db11 (patch)
treea4e44ebd96f6a64a67978ea1826cbd75512e25d3
parent456f3f30c42c492357883dfe71c7ca96a36696ea (diff)
makespec.py: put pluralizing s inside link for better visuals.
-rw-r--r--makespec.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/makespec.py b/makespec.py
index 9b5d523..84663f2 100644
--- a/makespec.py
+++ b/makespec.py
@@ -132,6 +132,8 @@ elif specformat == "html":
result = re.sub(r'␣', '<span class="space"> </span>', result)
result = re.sub(r'<h([1-6])><a id="([^\"]*)"><\/a> ',
"<h\\1 id=\"\\2\">", result)
+ # put plural s inside links for better visuals:
+ result = re.sub(r'<\/a>s', "s</a>", result)
sys.stdout.write(template.substitute(metadata, body=result))
# check for errors: