From: Fredrik Unger Date: Wed, 16 May 2012 10:06:53 +0000 (+0200) Subject: Fixing whitespaces for the docbook address. X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=commitdiff_plain;h=05f5b86d6cb584042033f5fe45680bdad9783b33 Fixing whitespaces for the docbook address. This is just to properly format the information in the html display. Could probably be solved elsewhere. --- diff --git a/xinclude/contact.py b/xinclude/contact.py index 379a336..74d9700 100755 --- a/xinclude/contact.py +++ b/xinclude/contact.py @@ -78,25 +78,25 @@ if 'n' in found.contents.keys(): if not empty: pn += '' if n.prefix != '': - pn += ''+n.prefix+'' + pn += ''+n.prefix+' ' if n.given != '': - pn += ''+n.given+'' + pn += ''+n.given+' ' if n.additional != '': - pn += ''+n.additional+'' + pn += ''+n.additional+' ' if n.family != '': - pn += ''+n.family+'' + pn += ''+n.family+' ' if n.suffix != '': - pn += ''+n.suffix+'' + pn += ''+n.suffix+' ' pn += '' ad = '' if 'adr' in found.contents.keys(): for a, t in zip(found.contents['adr'],found.contents['tel']): - ad += '\n
' + ad += '\n
' if a.value.street != '': ad += ''+a.value.street+'' if a.value.code != '': - ad += ''+a.value.code+'' + ad += ''+a.value.code+' ' if a.value.city != '': ad += ''+a.value.city+'' if a.value.country != '': @@ -120,7 +120,8 @@ if 'org' in found.contents.keys(): url = '' if 'url' in found.contents.keys(): - url += '' + url += ' ' + geo = '' #if 'geo' in found.contents.keys(): # (lat,lon) = found.geo.value.split(';')