Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mikegerwitz@gnu.org>2014-11-30 16:31:23 -0500
committerMike Gerwitz <mikegerwitz@gnu.org>2014-11-30 16:32:45 -0500
commit0b31902f19eae6e8b02d1965279b1d89f6c59535 (patch)
tree0f20f75904678e0e263236d5371929096d310ffb
parenta485238ca0cb1c60c4eb5c82003985acb870bd70 (diff)
downloadrepo2html-0b31902f19eae6e8b02d1965279b1d89f6c59535.tar.gz
repo2html-0b31902f19eae6e8b02d1965279b1d89f6c59535.tar.bz2
repo2html-0b31902f19eae6e8b02d1965279b1d89f6c59535.zip
Ignoring colons in ref footnote definitons
Preparation for transition to Markdown
-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