# File lib/text/format.rb, line 747
747:   def expand(to_expand = nil)
748:     to_expand = @text if to_expand.nil?
749: 
750:     tmp = ' ' * @tabstop
751:     changer = lambda do |text|
752:       res = text.split(NEWLINE_RE)
753:       res.collect! { |ln| ln.gsub!(/\t/o, tmp) }
754:       res.join(NEWLINE)
755:     end
756: 
757:     if to_expand.kind_of?(Array)
758:       to_expand.collect { |te| changer[te] }
759:     else
760:       changer[to_expand]
761:     end
762:   end