diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-05 00:22:51 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-05 00:22:51 -0800 |
commit | 60d2011b15a4c41a855f87ef72b4f6dec8e6db11 (patch) | |
tree | a4e44ebd96f6a64a67978ea1826cbd75512e25d3 | |
parent | 456f3f30c42c492357883dfe71c7ca96a36696ea (diff) |
makespec.py: put pluralizing s inside link for better visuals.
-rw-r--r-- | makespec.py | 2 |
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: |