All pastes #269482 Raw Edit

Miscellany

public ruby v1 · immutable
·published 2006-12-06 16:51 UTC
rendered paste body
		if(css_response.code=="200")			css_data.gsub!(/[\r\n]/, ' ')			if (css_data =~ /Congratulations!/)				css_markup_result = "Congratulations, your CSS has passed validation."			else				css_markup_result = "Failed validation. http://jigsaw.w3.org/css-validator/validator?uri=#{v_uri}&usermedium=all"			end			if (css_data =~ /<div class="error">(.*?)<\/div>/)				css_markup_result = $1			end		else			css_markup_result = "Error: HTTP/#{html_response.code}"		end