[Blends-commit] r3315 - /blends/trunk/webtools/blendstasktools.py

tille at users.alioth.debian.org tille at users.alioth.debian.org
Sun May 6 21:18:59 UTC 2012


Author: tille
Date: Sun May  6 21:18:58 2012
New Revision: 3315

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3315
Log:
Do not render BibTeX formated pages sparator (--) but use single dash (-) (Thanks for the patch to Michael Banck)

Modified:
    blends/trunk/webtools/blendstasktools.py

Modified: blends/trunk/webtools/blendstasktools.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/webtools/blendstasktools.py?rev=3315&op=diff
==============================================================================
--- blends/trunk/webtools/blendstasktools.py (original)
+++ blends/trunk/webtools/blendstasktools.py Sun May  6 21:18:58 2012
@@ -1486,6 +1486,8 @@
 
                 for pub in ("year", "title", "authors", "doi", "pubmed", "url", "journal", "volume", "number", "pages", "eprint" ):
                     if row[pub]:
+                        if pub == "pages":
+                            row[pub] = re.sub("--", "-", row[pub])
                         if not dep.properties.has_key('published'):
                             dep.properties['published'] = {}
                         if dep.properties['published'].has_key(pub):




More information about the Blends-commit mailing list