    # File lib/facets/core/string/fold.rb, line 19
      def fold(ignore_indented=false)
        ns = ''
        i = 0
        br = self.scan(/(\n\s*\n|\Z)/m) do |m|
          b = $~.begin(1)
          e = $~.end(1)
          nl = $&
          tx = slice(i...b)
          if ignore_indented and slice(i...b) =~ /^[ ]+/
            ns << tx
          else
            ns << tx.gsub(/[ ]*\n+/,' ')
          end
          ns << nl
          i = e
        end
        ns
      end