aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDafydd Harries <daf@rhydd.org>2013-03-19 10:06:29 -0400
committerDafydd Harries <daf@rhydd.org>2013-03-19 10:06:29 -0400
commitea8483ea5d846fb61947a1d09833214741e7f552 (patch)
tree43be864885c42e97e2dcd71d00615d01b9ea7720
parentf5687f4cbff7a06b31f0b24b2269fc09235612b8 (diff)
strip non-breaking spaces from upstream names
-rw-r--r--load_copyright.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/load_copyright.py b/load_copyright.py
index 20028aa..026f862 100644
--- a/load_copyright.py
+++ b/load_copyright.py
@@ -71,6 +71,14 @@ def import_one(pkgname, fh):
header['_srcpkg'] = pkgname
header['_license'] = header.get('License', '').split('\n')[0]
+
+ if 'Upstream-Name' in header:
+ # Make spaces breakable (!).
+ # Conceivably other characters need replacing.
+ header['Upstream-Name'] = \
+ header['Upstream-Name'].replace(u'\xa0', ' ')
+ #copy_summary['Upstream-Name'].replace('\xc2\xa0', ' ')
+
copy_summary = pd.DataFrame([header])
#print copy_summary.T.to_string()
#print