Closed (fixed)
Project:
HTML Tidy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 May 2011 at 07:15 UTC
Updated:
4 May 2012 at 22:20 UTC
Hi
Htmltidy is a really nice module having code indentation, format html and other features. I am Using this for one of my D7 project So here I have created a patch for it. I test it on few nodes, it worked for me, Please review this and give feedback.
Thanks
regards
Dev/Kuldev
| Comment | File | Size | Author |
|---|---|---|---|
| htmltidy-6.x-1.4.patch | 36.16 KB | devtherock |
Comments
Comment #1
michaelfavia commentedThanks bud. Your work is very appreciated. Added: http://drupal.org/node/1149242 . Will test more officially when i have a moment.
Comment #2
devtherock commentedThank you Michael.
Comment #3
Gabrieles commentedThank you, great to see HTMLtidy ready for D7!
One small issue: it throws out an annoying "Deprecated function: Function split() is deprecated in htmltidy_run() (line 645 of /var/www/goldrake/sites/all/modules/htmltidy/htmltidy.module)."
According to http://www.phpfreaks.com/forums/index.php?topic=272011.0 I edited htmltidy.module and substituted (twice) the "split()" function with "explode()" and the warning disappeared - any drawbacks in this?
Comment #4
devtherock commentedThanks you very much friend, patch created in hurry (and this was my first patch contributed to community :) ) so there can be issue left which I didn't see.
Thanks
regards
Dev/Kuldev
Comment #5
michaelfavia commentedIf you'd like to provide a patch for the changes you made and attach it ill be happy to commit it for you. Patching isnt very difficult if you have git installed on your machine. Just perform a "git diff" once you have checked out the most recent dev branch using:
git clone --branch 7.x-1.x http://git.drupal.org/project/htmltidy.git
cd htmltidy
More instructions here http://drupal.org/documentation/git if you need help with git itself. Its pretty straightforward and its always nice to give back if you have a minute to learn how. Thanks for participating regardless and good luck.
Comment #7
tlangston commentedwhy is there not a D7 release of this module?
Comment #8
michaelfavia commentedTO be honest i havent really had the time to maintain it as i dont use it anymore. I just enabled the dev snapshot for you. drupal.org should build it in the next 12 hours. If you test it and report back any issues ill happily roll a release and credit you.
Comment #9
colanFor future reference, this was committed in 6718f6b.
Comment #10
tlangston commentedThanks guys - works great!