Fix of issue 2843.
svn: r12364
This commit is contained in:
parent
9a85727a75
commit
517ab79472
@ -78,10 +78,10 @@ class Citation:
|
|||||||
second_letter = ''
|
second_letter = ''
|
||||||
letter_count = len(string.lowercase)
|
letter_count = len(string.lowercase)
|
||||||
ref_count = len(self.__ref_list)
|
ref_count = len(self.__ref_list)
|
||||||
if ref_count > letter_count:
|
if ref_count > letter_count -1:
|
||||||
# If there are more than 26 references, we need to use two
|
# If there are more than 26 references, we need to use two
|
||||||
# characters to uniquely identify them all.
|
# characters to uniquely identify them all.
|
||||||
first_letter = string.lowercase[ ref_count / letter_count ]
|
first_letter = string.lowercase[ ref_count / letter_count -1 ]
|
||||||
second_letter = string.lowercase[ ref_count % letter_count ]
|
second_letter = string.lowercase[ ref_count % letter_count ]
|
||||||
|
|
||||||
key = first_letter + second_letter
|
key = first_letter + second_letter
|
||||||
@ -228,4 +228,4 @@ class Bibliography:
|
|||||||
if notehandle not in nl2:
|
if notehandle not in nl2:
|
||||||
return False
|
return False
|
||||||
# Can't find anything different. They must be equal.
|
# Can't find anything different. They must be equal.
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user