-
Notifications
You must be signed in to change notification settings - Fork 55
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
Diffs of text containing tab characters? #11
Comments
Hi @BlackKite84 can you produce a jsfiddle with the problem? |
Huh, I am missing something here. You specified (in that jsfiddle):
Questions:
|
Also, the "title" of this issue is set to |
I overwrite the change Content with the diff (i will see only change and original) http://jsfiddle.net/pytm9ueL/2/ A new line ( |
Add This will show you what this library found. Looks like the underlying Google |
and why "Enter" i use Tab |
Like I said, what you are seeing is coming from the underlying library. Please ask your question there: https://code.google.com/p/google-diff-match-patch/ |
I have Fix ist with
|
I am running into the same issue that @BlackKite84 was seeing. I have two divs that appear to have identical content (including whitespace). If I pass parameters via originalContainer and changedContainer, PrettyTextDiff appears to pass slightly different strings (different in their whitespace) to google-diff-match-patch. Here is the result of a call to .prettyTextDiff( ) when I use originalContainer and changedContainer parameters. Note the And here is the result of a call to .prettyTextDiff( ) when I use originalContent and changedContent parameters with the trim( ) function, as suggested by @BlackKite84. It works as expected: |
It appears that if there are matching newline characters inside the originalContent and changedContent divs, google-diff-match-patch passes the newline character back, but PrettyTextDiff converts said newline character to a I'm not sure if it would break things for other users, but it seems like substituting |
I think that any problems like Example: https://jsfiddle.net/ybz8enwk |
on Diff by Two Table withs Tab's the output has a
what does not belong there
output (updateChange) the
before Dog Days is too much
on view in browser i See a new line, the Text is not symmetric on line beginning
The text was updated successfully, but these errors were encountered: