-
-
Notifications
You must be signed in to change notification settings - Fork 61
Space preceding DOI is linked when prefixed by CSL #163
Comments
(This results, of course, from #107; sorry for not pointing this out earlier.) |
This is because the style has
What fix do you propose? I suppose we could strip off leading spaces from the prefix and trailing spaces from the suffix, and put those outside the link. For reference, here's a link to the relevant code: |
Exactly (technically line 405 is what we're looking at). It's not considered good style in CSL, but it happens frequently in practice. Excluding the space from the link seems safe. Here, it would probably be better if |
So maybe it would be best, instead of linking the prefix and suffix, just to check the prefix. If it ends with a string beginning |
Yes, that does sound more ideal. This would also return the old behaviour of not linking the prefixed |
That's even more clever. Thank you! |
Using pandoc-citeproc 0.7.3 and pandoc 1.15.0.6, a space preceding the linked DOI is linked when it is prefixed by the CSL, as with MHRA:
Result:
The text was updated successfully, but these errors were encountered: