aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/htmltidy.pm
Commit message (Collapse)AuthorAge
* htmltidy: Avoid breaking the sidebar when websetup is running.Joey Hess2011-02-03
| | | | | | | | | | | | | | | | 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.
* Added missing hook registration for checkconfigTuomas Jormola2010-10-30
| | | | Signed-off-by: Tuomas Jormola <tj@solitudo.net>
* fixups tidy changeJoey Hess2010-10-02
| | | | Need checkconfig hook; examples don't become default values.
* Make tidy command line configurable for the htmltidy plugin.W. Trevor King2010-09-30
|
* htmltidy: Return an error message if tidy fails. Closes: #543722Joey Hess2009-08-27
| | | | | On second^Wthird^Wfourth thought, putting the message into the page seems better than using stderr.
* htmltidy: Print a warning message if tidy fails. Closes: #543722Joey Hess2009-08-26
|
* finalise version 3.00 of the plugin apiJoey Hess2008-12-23
|
* Coding style change: Remove explcit vim folding markers.Joey Hess2008-12-17
|
* htmltidy robustness fixesJoey Hess2008-09-27
| | | | | | | * 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.
* add plugin safe/rebuild info (part 1 of 2)Joey Hess2008-08-03
| | | | too many plugins.. brain exploding..
* * htmltidy: Pass --markup yes, in case tidy's config file disabled it.Joey Hess2008-03-15
|
* reset SIGPIPE before returningJoey Hess2007-11-05
|
* * pagespec_match() has changed to take named parameters, to better allowjoey2007-04-27
| | | | | | | | | 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.
* * Fix a forkbomb in various calls to IPC::Open2, which has a highlyjoey2006-09-25
| | | | braindead interface. Closes: #389383
* * Work on firming up the plugin interface:joey2006-09-09
| | | | | | | | | | | | | | | | | | | - 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.
* * Add proper waitpid calls for open2ed processes throughout to avoidjoey2006-09-03
| | | | zombies; this hit htmltidy especially badly.
* * Change htmlize, format, and sanitize hooks to use named parameters.joey2006-08-28
|
* * Catch failing IPC::Open2 in tidy plugin and retry in case this is ajoey2006-08-17
| | | | transient failure to fork (which I've seen happen in the wild).
* * Turn off tidy indentation too.joey2006-08-05
|
* * Move tidy back to sanitize hook, found out how to only show body.joey2006-08-05
|
* * Disable tidy generator tag.joey2006-08-05
|
* * Don't run tidy with -xml as that fails if the input is not well-formed.joey2006-08-04
| | | | | | | | | 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.
* * Fix the htmltidy plugin, which wasn't working due my breaking it whenjoey2006-08-04
| | | | I added it..
* * htmltidy plugin from Faidon.joey2006-07-29