summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/htmltidy.pm
AgeCommit message (Collapse)Author
2011-02-03htmltidy: Avoid breaking the sidebar when websetup is running.Joey Hess
Problem was this: websetup loads all plugins, but does not checkconfig them. So, htmltidy's recently added configurable command setting was unset; this resulted in its sanitize hook failing; the sanitize hook is called when a sidebar was enabled, and this caused the sidebar to not display. I put in a fix, but the underlying problem is that websetup loads all plugins but leaves them in an unconfigured and possibly broken state while trying to display its forms. Probably the long-term fix is to have it cache the original hook states from before loading the plugins, and restore it after getting their configuration. Or, even to get the configuration using a subprocess, as plugins may do things outside the hook system.
2010-10-30Added missing hook registration for checkconfigTuomas Jormola
Signed-off-by: Tuomas Jormola <tj@solitudo.net>
2010-10-02fixups tidy changeJoey Hess
Need checkconfig hook; examples don't become default values.
2010-09-30Make tidy command line configurable for the htmltidy plugin.W. Trevor King
2009-08-27htmltidy: Return an error message if tidy fails. Closes: #543722Joey Hess
On second^Wthird^Wfourth thought, putting the message into the page seems better than using stderr.
2009-08-26htmltidy: Print a warning message if tidy fails. Closes: #543722Joey Hess
2008-12-23finalise version 3.00 of the plugin apiJoey Hess
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-09-27htmltidy robustness fixesJoey Hess
* htmltidy: Avoid returning undef if tidy fails. Also avoid returning the untidied content if tidy crashes. In either case, it seems best to tidy the content to nothing. * htmltidy: Avoid spewing tidy errors to stderr.
2008-08-03add plugin safe/rebuild info (part 1 of 2)Joey Hess
too many plugins.. brain exploding..
2008-03-15* htmltidy: Pass --markup yes, in case tidy's config file disabled it.Joey Hess
2007-11-05reset SIGPIPE before returningJoey Hess
2007-04-27* pagespec_match() has changed to take named parameters, to better allowjoey
for extended pagespecs. The old calling convention will still work for back-compat for now. * The calling convention for functions in the IkiWiki::PageSpec namespace has changed so they are passed named parameters. * Plugin interface version increased to 2.00 since I don't anticipate any more interface changes before 2.0.
2006-09-25* Fix a forkbomb in various calls to IPC::Open2, which has a highlyjoey
braindead interface. Closes: #389383
2006-09-09* Work on firming up the plugin interface:joey
- Plugins should not need to load IkiWiki::Render to get commonly used functions, so moved some functions from there to IkiWiki. - Picked out the set of functions and variables that most plugins use, documented them, and made IkiWiki export them by default, like a proper perl module should. - Use the other functions at your own risk. - This is not quite complete, I still have to decide whether to export some other things. * Changed all plugins included in ikiwiki to not use "IkiWiki::" when referring to stuff now exported by the IkiWiki module. * Anyone with a third-party ikiwiki plugin is strongly enrouraged to make like changes to it and avoid use of non-exported symboles from "IkiWiki::". * Link debian/changelog and debian/news to NEWS and CHANGELOG. * Support hyperestradier version 1.4.2, which adds a new required phraseform setting.
2006-09-03* Add proper waitpid calls for open2ed processes throughout to avoidjoey
zombies; this hit htmltidy especially badly.
2006-08-28* Change htmlize, format, and sanitize hooks to use named parameters.joey
2006-08-17* Catch failing IPC::Open2 in tidy plugin and retry in case this is ajoey
transient failure to fork (which I've seen happen in the wild).
2006-08-05* Turn off tidy indentation too.joey
2006-08-05* Move tidy back to sanitize hook, found out how to only show body.joey
2006-08-05* Disable tidy generator tag.joey
2006-08-04* Don't run tidy with -xml as that fails if the input is not well-formed.joey
Run it with -asxhtml instead, so it will output well-formed xhtml no matter what the input. * Disable tidy warnings too. * Add a new format hook, and make tidy use it, since tidy can really only operate on and output complete html documents, not the body chunks that sanitise gets.
2006-08-04* Fix the htmltidy plugin, which wasn't working due my breaking it whenjoey
I added it..
2006-07-29* htmltidy plugin from Faidon.joey