Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmsgfmt4
1 files changed, 2 insertions, 2 deletions
diff --git a/msgfmt b/msgfmt
index 2e1e430..9d605dd 100755
--- a/msgfmt
+++ b/msgfmt
@@ -54,7 +54,7 @@ while getopts nP opt; do
done
# calculate this after options have been parsed
-refopar="${opar:+${opar%>} id="ref-\\1" class="ref">}"
+refopar="${opar:+${opar%>} id="ref-\\2" class="ref">}"
# format the commit message, stopping at the diff (if any)
awk -vid="$id" -vurl_root="${url_root%/}" -vcref_errlog="$cref_errlog" '
@@ -107,7 +107,7 @@ awk -vid="$id" -vurl_root="${url_root%/}" -vcref_errlog="$cref_errlog" '
s#<a href="\([^"]\+\)\([.;,!]\)">\([^<]\+\).</a>#<a href="\1">\3</a>\2#g;
# reference definitions (footnotes)
- s#\n\[\([0-9]\+\)\]#'"$epar$refopar"'&#g;
+ s#\(\n\[\([0-9]\+\)\]\):\?#'"$epar$refopar"'\1#g;
# references in text (note that references that enclose text as a hyperlink
# must not start with a number, otherwise they will be considered to be a