Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing space and added fullstop when using given-name and family-name #2

Closed
petskratt opened this issue Apr 18, 2011 · 6 comments
Closed
Assignees

Comments

@petskratt
Copy link

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:

`

Fréderic de Villamil
`

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

@WebOrganics
Copy link
Owner

Will fix on the next update, thanks.

@ghost ghost assigned WebOrganics Apr 18, 2011
@WebOrganics
Copy link
Owner

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

@WebOrganics
Copy link
Owner

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

@WebOrganics WebOrganics reopened this Apr 18, 2011
@WebOrganics
Copy link
Owner

re opened until fix is confirmed ;)

@petskratt
Copy link
Author

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/

@WebOrganics
Copy link
Owner

all should be well, dom parsing preserves white-space now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants