Commit 027b368d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update PublicationInfoMixin to improve format_editor

parent e75ff7cc
......@@ -89,9 +89,10 @@ class PublicationInfoMixin(object):
# get the volume letter
m = re.match(r'([A-Z]+) *(\d+)', volume)
if m and m.group(1) != editor[-1]:
editor = "%s %s" % (editor, m.group(1))
if m:
volume = m.group(2)
if m.group(1) != editor[-1]:
editor = "%s %s" % (editor, m.group(1))
# remove stupid mistake
editor = CLEAN_SPACES(editor)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment