lib/rubber/util.rb
# remove leading whitespace from "here" strings so they look good in code
# skips empty lines
remove leading whitespace from "here" strings so they look good in code
skips empty lines
remove leading whitespace from " here " strings so they look good in code skips empty lines
def clean_indent(str)
      str.lines.collect do |line|
        if line =~ /\S/ 
          line.lstrip
        else
          line
        end
      end.join()
    end
def clean_indent ( str ) str . lines . collect do | line | if line =~ / \S / line . lstrip else line end end . join ( ) end
remove leading whitespace from "here" strings so they look good in code
skips empty lines
remove leading whitespace from " here " strings so they look good in code skips empty lines
# line has at least one non-whitespace character
str