Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
>> require 'hpricot' => true >> require 'open-uri' => true >> def hopen(url) >> @string = open(url).read >> @doc = Hpricot(@string) >> end >> hopen 'http://www.boingboing.net/' ; nil => nil >> @string.length => 163697 >> @doc.at('#footer-etc') => {elem <div id="footer-etc"> "\n " {elem <div class="block"> "This work is licensed under a " {elem <a href="http://creativecommons.org/licenses/by-nc/2.5/"> "Creative Commons License" </a>} " permitting non-commercial sharing with attribution." </div>} "\n " {elem <div class="block"> "Boing Boing is a trademark of Happy Mutants LLC in the United States and other countries." </div>} "\n " </div>}
This paste will be private.
From the Design Piracy series on my blog: