adopt strip.rb to remove unnecessary whitespaces in the code
modify strip.rb to preserve whitespace in <pre> tag