diff --git a/patacrep/authors.py b/patacrep/authors.py index e2c95b2d..8cde76cf 100644 --- a/patacrep/authors.py +++ b/patacrep/authors.py @@ -72,7 +72,7 @@ def split_sep_author(string, sep): - sep: regexp matching a separator. >>> split_sep_author("Tintin and Milou", re.compile('^(.*) and (.*)$')) - ["Tintin", "Milou"] + ['Tintin', 'Milou'] """ authors = [] match = sep.match(string) @@ -80,7 +80,7 @@ def split_sep_author(string, sep): authors.append(match.group(2)) string = match.group(1) match = sep.match(string) - authors.append(string) + authors.insert(0, string) return authors ################################################################################