Browse Source

Merge pull request #216 from cbernet/fix_empty_keyword_authors

bug fix for empty keyword in index generation
pull/181/merge
oliverpool 9 years ago
parent
commit
5393c5900c
  1. 4
      patacrep/authors.py

4
patacrep/authors.py

@ -17,11 +17,11 @@ def compile_authwords(authwords):
'ignore': authwords.get('ignore', []), 'ignore': authwords.get('ignore', []),
'after': [ 'after': [
re.compile(RE_AFTER.format(word)) re.compile(RE_AFTER.format(word))
for word in authwords.get('after') for word in authwords.get('after', [])
], ],
'separators': [ 'separators': [
re.compile(RE_SEPARATOR.format(word)) re.compile(RE_SEPARATOR.format(word))
for word in ([" %s" % word for word in authwords['separators']] + [',', ';']) for word in ([" %s" % word for word in authwords.get('separators', [])] + [',', ';'])
], ],
} }

Loading…
Cancel
Save