-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Whitespace not being rendered #55
Comments
Hmm... try passing the Example: |
we tried that, but it doesnt work. Drew Wilson On Apr 26, 2012, at 1:15 PM, Matt Mueller wrote:
|
Okay hmm... yah that's a problem. I'll take a look at this over the weekend. |
by the way, i'm using cheerio for my newly launched app: http://dialog.gs :D Much faster than JSDOM. On Apr 26, 2012, at 1:56 PM, Matt Mueller wrote:
|
Oh the app seems pretty cool! Could I get an invite? ;-) |
Okay, I've had a chance to look at this. I've upgraded
|
Could you please pull down master and verify it on your end? I'll bump the version once I can confirm this has been resolved. |
Hey! Got the new changes, thanks. However it doesn't work for me still. var $ = cheerio.load(html,{ ignoreWhitespace : false }); Doing the above works, but the options are not actually set. So 'ignoreWhitespace' is still set to 'true' when i do: For now i have to do this, and it all works as it should: var $ = cheerio.load(html); |
weird. maybe I forgot to commit something.. let me check. |
This should work as expected in version 0.8.0. |
Any whitespace between tags is NOT being rendered with .html()
For example: Link HyperLink
The output of that when rendered with .html() is: LinkHyperLink
It removes the space in-between the 2 tags. This only happens when 2 tags are one after the other. To get around it i have to do the following to the html string: .replace('> <','> <');
The text was updated successfully, but these errors were encountered: