Fix rendering abbreviated two-part surnames (#765)

Fixes #764.
This commit is contained in:
Zachary Ware 2018-08-29 15:09:31 -05:00 committed by GitHub
parent 3e8d31fe90
commit 551b28921f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ class Author(object):
name_sep = name.index(last_name_fragment)
self.first = name[:name_sep].rstrip()
self.last = last_name_fragment
if self.last[1] == u'.':
# Add an escape to avoid docutils turning `v.` into `22.`.
self.last = u'\\' + self.last
self.suffix = suffix
if not self.first:
self.last_first = self.last