Closed (outdated)
Project:
Diff
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2012 at 18:43 UTC
Updated:
16 Dec 2024 at 19:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kscheirerCould you post steps to reproduce this bug? I'd be happy to try it out and see if we can get in a fix.
Comment #2
alan d. commentedI have noticed this on large HTML pages where WYSIWYG editor strips out the white space and new lines. I am guessing that enforcing a line break after a closing block group would probably resolve this.
Something like:
This is just to visualize the concept.
Comment #3
jc174 commentedI used the page below to test. Each numbered line with the character "a" represents 10 characters of code. The issue occurs around the 10,000 character mark, give or take. We are using WYSIWIG along with CKEditor.
http://researchadmin2.asu.edu/jtest2
Comment #4
alan d. commentedDoes CKEditor WYSIWIG settings have some sort of format HTML option? The raw output from that page represents just two lines of text.
For TinyMCE I get:
[*] Remove linebreaks
If enabled, the editor will remove most linebreaks from contents. Disabling this option could avoid conflicts with other input filters.
[ ] Apply source formatting
If enabled, the editor will re-format the HTML source code. Disabling this option could avoid conflicts with other input filters.
Unchecking "Remove linebreaks" will probably be enough (double check that you do not have the newline to br filter enabled)
If you still have issues, try checking "Apply source formatting".
For diff 3.x, the following patch introduces an unconditional additional filter that would also help. This was only for testing and fixed the diff on a 100 paragraph Lorem ipsum comparison. I will need to decide on how to integrate this, possibly as a configurable diff_comparison_compare callback or something...
Comment #5
jc174 commentedThanks Alan, I'll try that! As a temporary solution, I had changed the limits in DiffEngine.php from 10k to 100k.
Comment #6
jc174 commentedI looked into it and the "Remove linebreaks" option was unchecked, so that doesn't do it. Good idea though.
Comment #7
pgillis commentedI've tried changing DiffEngine.php limits and it didn't help for me in D6.
Comment #8
alan d. commentedDid anyone find a good solution for this?
Comment #9
prabha.venkatesan commentedHi, I am facing the same issue for the diff module in Drupal 7, and i tried the solution given by alan-d, but unfortunately it doesn't help me. Does anyone get this fixed? Any help would be appreciated. Thanks in advance.
Comment #10
heddnGiven the proximity of EOL for Drupal 7, marking this as won't fix. The likely final Drupal 7 release of diff has landed in https://www.drupal.org/project/diff/releases/7.x-3.5. If this is something still applicable to a more modern version of the module, feel free to re-open and post additional notes.