From 8b6e57709dd4febefe6f8b577ffe5efc7f2054b2 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 15 Mar 2013 16:26:05 -0400 Subject: [PATCH] Enclosed text in reference hyperlinks must not begin with a non-numeric character This is not the best of solutions, but will at least help to eliminate the problem of multiple adjacent references. --- msgfmt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/msgfmt b/msgfmt index f1f546c..651348b 100755 --- a/msgfmt +++ b/msgfmt @@ -93,8 +93,10 @@ awk -vid="$id" -vurl_root="$url_root" -vcref_errlog="$cref_errlog" ' # reference definitions (footnotes) s#\n\[\([0-9]\+\)\]#

&#g; - # references in text - s|\[\([^]]\+\)\]\[\([0-9]\+\)\]|\1\[\2\]|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 + # reference number) + s|\[\([^0-9][^]]\+\)\]\[\([0-9]\+\)\]|\1\[\2\]|g s|\[\([0-9]\+\)\]|&|g # paragraphs