private Method

Format.__expand(to_expand)

expand tabs to spaces should be similar to Text::Tabs::expand

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 698
def __expand(to_expand) #:nodoc:
  expanded = []
  to_expand.split("\n").each { |te| expanded << te.gsub(/\t/, ' ' * @tabstop) }
  expanded.join('')
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.