missing space and added fullstop when using given-name and family-name
petskratt opened this issue · comments
if markup contains nested spans and is parsed from html (not direct) spaces are removed from names and dot is added - using (simplified) exsample from http://microformats.org/wiki/hcard-examples to create HTML file:
`
results in:
N;CHARSET=UTF-8:de Villamil;Fréderic;;; FN;CHARSET=UTF-8:Frédericde Villamil.
e.g no space, fullstop added.
this seems to be result of replaces in get_file_contents ("insert fullstop so tidy does not clean empty span or span with just a space") - and hopefully not intended, as some applications do use the FN when N is present
Will fix on the next update, thanks.
get_file_contents now inserts a non breaking space to prevent tidy from dropping empty span's this is later stripped out by XSLT please see: 8f8bccf#L0R253
get_file_contents now inserts a non breaking space to prevent tidy from dropping empty span's this is later stripped out by XSLT please see: 8f8bccf#L0R253
re opened until fix is confirmed ;)
mmm... dot is gone, but space between firstname/familyname spans is still lost in process - try live with http://www.lmh.ee/inimesed/partnerid/jaanus-mody/
all should be well, dom parsing preserves white-space now.