1
0
Fork 0

Ignoring colons in ref footnote definitons

Preparation for transition to Markdown
master
Mike Gerwitz 2014-11-30 16:31:23 -05:00
parent a485238ca0
commit 0b31902f19
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 2 additions and 2 deletions

4
msgfmt
View File

@ -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