Commit bf4e97e9 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Fix a bug in the function format_author_name (M.-O. Foo).

parent 972d8647
......@@ -124,6 +124,12 @@ def format_author_fr(name):
if match.group(3) and match.group(4):
result = '%s.%s%s. %s' % (match.group(2)[0], match.group(3)[0],
match.group(4)[0], match.group(1))
elif "-" in match.group(2):
li = [el[0] for el in match.group(2).split("-")]
li.append(match.group(1))
result = "%s.-%s. %s" % tuple(li)
else:
result = '%s. %s' % (match.group(2)[0], match.group(1))
else:
......
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