diff options
-rw-r--r-- | load_copyright.py | 8 |
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 |