You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Anchors must start with a letter. Instead of rejecting "invalid"
433
435
# anchors, we just prepend something arbitrary.
@@ -438,8 +440,14 @@ function get_anchor_key(citation_key::String, cache::Bijections.Bijection{String
438
440
# duplicates here.
439
441
cache[citation_key] = anchor_key
440
442
catch
441
-
msg ="Cannot generate HTML anchor for citation key $(repr(citation_key)): normalizes to ambiguous $(repr(anchor_key)) conflicting with citation key $(repr(cache(anchor_key)))"
442
-
error(msg)
443
+
suffix_index +=1
444
+
msg ="HTML anchor for citation key $(repr(citation_key)) normalizes to ambiguous $(repr(anchor_key)) conflicting with citation key $(repr(cache(anchor_key))). Disambiguating with suffix \"-$(suffix_index)\""
msg ="Cannot generate HTML anchor for citation key \"AbsilMahonySepulchre.2008\": normalizes to ambiguous \"AbsilMahonySepulchre2008\" conflicting with citation key \"AbsilMahonySepulchre:2008\""
30
-
@Test c.value.msg == msg
31
-
28
+
@test c.value =="AbsilMahonySepulchre2008-2"
29
+
msg ="Warning: HTML anchor for citation key \"AbsilMahonySepulchre.2008\" normalizes to ambiguous \"AbsilMahonySepulchre2008\" conflicting with citation key \"AbsilMahonySepulchre:2008\". Disambiguating with suffix \"-2\""
0 commit comments