From ea8483ea5d846fb61947a1d09833214741e7f552 Mon Sep 17 00:00:00 2001 From: Dafydd Harries Date: Tue, 19 Mar 2013 10:06:29 -0400 Subject: strip non-breaking spaces from upstream names --- load_copyright.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3