<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks for your answer. It however does not seem to be a solution.</div><div><br></div><div>Do you have any other ideas?</div><div><br></div><div>Many thanks,</div><div>Jeff</div><div><i><br></i></div><div><i>this</i>:</div><div> def _tag_email(self,tag,data):</div><div> if data:</div><div> for k,v in data.items():</div><div> print k,v</div><div> temp = self.j.add('email')</div><div> temp.value = v</div><div> temp.type_param = 'INTERNET'</div><div><br></div><div><i>produces</i>:</div><div><i><br></i></div><div><font class="Apple-style-span" face="LuxiMono, 'Bitstream Vera Sans Mono', Monaco, 'Courier New', monospace"><span class="Apple-style-span" style="font-size: 12px; ">email <a href="mailto:jeffsmith@me.com">jeffsmith@me.com</a><br style="margin-top: 0px; ">email <a href="mailto:jeffsmith@mac.com">jeffsmith@mac.com</a></span></font></div><div><font class="Apple-style-span" face="LuxiMono, 'Bitstream Vera Sans Mono', Monaco, 'Courier New', monospace"><span class="Apple-style-span" style="font-size: 12px; "><br> VCARD<br> ADR: 32 Smith Waters Rd<br>Kincumber, 2251<br>Australia<br> BDAY: 1961-10-21<br> N: Jeff G. Smith <br> VERSION: 3.0<br> TEL: 02 4332 0368<br> params for TEL:<br> HOME ['HOME']<br> TEL: <br> NICKNAME: Eddie<br> EMAIL: <a href="mailto:jeffsmith@me.com">jeffsmith@me.com</a><br> params for EMAIL:<br> TYPE ['INTERNET']<br> EMAIL: <a href="mailto:jeffsmith@mac.com">jeffsmith@mac.com</a><br> params for EMAIL:<br> TYPE ['INTERNET']<br> FN: Jeff Smith</span></font></div><div><br></div><div><div>On 26/01/2012, at 11:36 PM, Adam Tauno Williams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Thu, 2012-01-26 at 22:49 +1100, Jeff Edwards wrote:<br><blockquote type="cite">The problem I have is that the second email or phone shows as empty<br></blockquote><blockquote type="cite">when pretty printed<br></blockquote><br><blockquote type="cite">for k,v in data.items():<br></blockquote><blockquote type="cite"> self.j.add('email')<br></blockquote><blockquote type="cite"> self.j.email.value = v<br></blockquote><blockquote type="cite"> self.j.email.type_param = 'INTERNET'<br></blockquote><br>try -<br><br>for k,v in data.items():<br> tmp = self.j.add('email')<br> tmp.value = v<br> tmp.type_param = 'INTERNET'<br><br><br>-- <br>Adam Tauno Williams <<a href="http://www.whitemiceconsulting.com">http://www.whitemiceconsulting.com</a>><br>System Administrator, OpenGroupware Developer, LPI / CNA<br>Fingerprint 8C08 209A FBE3 C41A DD2F A270 2D17 8FA4 D95E D383<br>_______________________________________________<br>VObject mailing list<br><a href="mailto:VObject@lists.skyhouseconsulting.com">VObject@lists.skyhouseconsulting.com</a><br>http://lists.skyhouseconsulting.com/mailman/listinfo/vobject</div></blockquote></div><br></body></html>