-
Notifications
You must be signed in to change notification settings - Fork 177
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
Replacement for newlines and tabs #7
Comments
After a few more thoughts. In formatted texts the " " is correct. Example:
There you want the " ". Can´t we put a matching expression before which matches on
as an edge case? |
Sure, if you can create a testcase and pull request that seems reasonable |
will this be merged ? |
This behaviour gets my -1, or at least the unit test does.
and
These are both syntactically identical as far as HTML is concerned, and the Html2Text conversion should also yield identical results. If this were a That said, I do feel that there is still a bug. That is to say that:
Should all output identically:
So I see two bugs at play here:
|
The content of paragraph tags should be treated equally. That is to say that whitespace within the tag (newline, and spaces) should be compressed before the tag is treated.
The content of paragraph tags should be treated equally. That is to say that whitespace within the tag (newline, and spaces) should be compressed before the tag is treated.
The content of paragraph tags should be treated equally. That is to say that whitespace within the tag (newline, and spaces) should be compressed before the tag is treated.
Hi,
ist the " " as replacement correct? Newlines and tabs don´t do much in html.
The html I have:
Results to:
The " " before "with" is not correct there, but I can´t decide if there aren´t any other side effects?
The text was updated successfully, but these errors were encountered: