From: Michael Hanke Date: Mon, 29 Nov 2010 19:13:38 +0000 (-0500) Subject: Prevent duplicate trailing dots in publication titles. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e92d569475ee28d31394571811a122682e705498;p=neurodebian.git Prevent duplicate trailing dots in publication titles. --- diff --git a/neurodebian/dde.py b/neurodebian/dde.py index e96e366..be008f9 100755 --- a/neurodebian/dde.py +++ b/neurodebian/dde.py @@ -220,7 +220,12 @@ def import_blendstask(cfg, db, url): # Publications if st.has_key('Published-Title'): - pub = {'title': st['Published-Title']} + title = st['Published-Title'] + if title[-1] == '.': + # trip trailing dot -- added later + pub = {'title': title[:-1]} + else: + pub = {'title': title} if st.has_key('Published-Authors'): pub['authors'] = st['Published-Authors'] if st.has_key('Published-Year'):