From: Fredrik Unger <fred@tree.se> 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?a=commitdiff_plain;h=05f5b86d6cb584042033f5fe45680bdad9783b33;p=treecutter.git 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 += '<personname>' if n.prefix != '': - pn += '<honorific>'+n.prefix+'</honorific>' + pn += '<honorific>'+n.prefix+'</honorific> ' if n.given != '': - pn += '<firstname>'+n.given+'</firstname>' + pn += '<firstname>'+n.given+'</firstname> ' if n.additional != '': - pn += '<othername>'+n.additional+'</othername>' + pn += '<othername>'+n.additional+'</othername> ' if n.family != '': - pn += '<surname>'+n.family+'</surname>' + pn += '<surname>'+n.family+'</surname> ' if n.suffix != '': - pn += '<lineage>'+n.suffix+'</lineage>' + pn += '<lineage>'+n.suffix+'</lineage> ' pn += '</personname>' ad = '' if 'adr' in found.contents.keys(): for a, t in zip(found.contents['adr'],found.contents['tel']): - ad += '\n<address type="'+a.type_param+'">' + ad += '\n<address type="'+a.type_param+'"> ' if a.value.street != '': ad += '<street>'+a.value.street+'</street>' if a.value.code != '': - ad += '<postcode>'+a.value.code+'</postcode>' + ad += '<postcode>'+a.value.code+'</postcode> ' if a.value.city != '': ad += '<city>'+a.value.city+'</city>' if a.value.country != '': @@ -120,7 +120,8 @@ if 'org' in found.contents.keys(): url = '' if 'url' in found.contents.keys(): - url += '<uri type="website"><link xlink:href="'+found.url.value+'"/></uri>' + url += '<uri type="website"><link xlink:href="'+found.url.value+'"/></uri> ' + geo = '' #if 'geo' in found.contents.keys(): # (lat,lon) = found.geo.value.split(';')