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

Only first instance of white space is stripped #77

Open
GoogleCodeExporter opened this issue Mar 22, 2015 · 2 comments
Open

Only first instance of white space is stripped #77

GoogleCodeExporter opened this issue Mar 22, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

When serializing HTML with the the strip_whitespace option on only the
first instance of whitespace in any Character token is stripped

You can see this if you running a whitespace unit test with the following data

{"description": "bare text with multiple groups of inner spaces",
 "options": {"strip_whitespace": true},
 "input": [["Characters", "foo \t\r\n\u000B\u000C bar and more \t\r\n bar"]],
 "expected": ["foo bar and more bar"]
}

which results in the failure

  1) Failure:
test_whitespace_4(Html5SerializeTestcase) [test/test_serializer.rb:48]:
bare text with multiple groups of inner spaces.
<"foo bar and more bar"> expected but was
<"foo bar and more \t\r\n bar">.

A patch is attached to fix this.


Original issue reported on code.google.com by [email protected] on 30 Jul 2008 at 11:00

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 30 Jul 2008 at 8:25

  • Added labels: Port-Ruby

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 30 Jul 2008 at 8:25

  • Changed state: Accepted

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

No branches or pull requests

1 participant