vendor/bundle/ruby/1.8/gems/io-reactor-1.0.4/rake/manual.rb
### Clean up and return the given HTML +source+.
Clean up and return the given HTML +source+.
Clean up and return the given HTML + source + .
def cleanup( source )
			require 'tidy'
			Tidy.path = '/usr/lib/libtidy.dylib'
			Tidy.open( TIDY_OPTIONS ) do |tidy|
				tidy.options.output_xhtml = true
				xml = tidy.clean( source )
				puts tidy.errors
				puts tidy.diagnostics
				return xml
			end
		rescue LoadError => err
			trace "No cleanup: " + err.message
			return source
		end
def cleanup ( source ) require 'tidy' Tidy . path = '/usr/lib/libtidy.dylib' Tidy . open ( TIDY_OPTIONS ) do | tidy | tidy . options . output_xhtml = true xml = tidy . clean ( source ) puts tidy . errors puts tidy . diagnostics return xml end rescue LoadError => err trace "No cleanup: " + err . message return source end
Clean up and return the given HTML +source+.
Clean up and return the given HTML + source + .
source