Considering we're using WYSIWYG html editors and revision diffs in the Wiki feature look a bit naff (especially to a user unaware of html tags)...
...this patch seems a good compromise, seeing as having rich text diffs seems like a big no-no-no from what I've read:
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1363938-commons-diff-remove-html.patch | 11.65 KB | ezra-g |
| #6 | drupal_commons-add-diff-strip-tags-1363938-3.patch | 11.68 KB | mstef |
| #3 | drupal_commons-add-diff-strip-tags-1363938-2.patch | 11.55 KB | mstef |
| #2 | drupal_commons-add-diff-strip-tags-1363938.patch | 11.55 KB | mstef |
Comments
Comment #1
mstef commentedPatch confirmed to work.
If we do want to add this, we'd also have to set variables for each content type:
variable_set("remove_markup_default_{$content_type}", TRUE)
Comment #2
mstef commentedBig patch, updating all features containing content types, and the make file to bring in the patch.
Comment #3
mstef commentedNew patch, giving diff the 2.x branch in the make file.
Comment #4
ezra-g commentedThe drush make syntax is incorrect for the diff module and therefore prevents Drush make from packaging commons. Please see an example of correct syntax for pulling from git.
[Edit:] In the code comment above a patch, please reference the specific Drupal.org issue comment associated with the patch rather than the issue node, since the comment # is more specific. Thanks!
Comment #5
mstef commentedMyyyy bad..
new patch coming right away
Comment #6
mstef commentedShould do it..
Comment #7
ezra-g commentedThe patch in #6 was close:
The comment there refers to the present issue, rather than the *specific comment within the Diff project where the patch originated*.
The patch file specified no longer applies to the latest from the 6.x-2.x dev branch of Diff with a simple git apply, so I re-rolled it as well as the patch against Commons.
This works great in my functional testing.
Comment #8
ezra-g commentedThis is committed.
Thanks, lightsurge for this suggestion!
http://drupalcode.org/project/commons.git/commit/fd73a09