Sha256: da2b6eac99b9179d896e2946b69f64477b484fc06fd4e05cabd26ec25d875db2

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

module Caramelize
  class RemoveTableTabLineEndings

    def initialize(body)
      @body = body
    end

    # take an input stream and convert all wikka syntax to markdown syntax
    def run
      migrated_body = @body.dup
      migrated_body.gsub!(/\|[\t ]*\r?[\n]/, "|\n")
      migrated_body
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
caramelize-1.1.1 lib/caramelize/filters/remove_table_tab_line_endings.rb
caramelize-1.1.0 lib/caramelize/filters/remove_table_tab_line_endings.rb
caramelize-1.0.0 lib/caramelize/filters/remove_table_tab_line_endings.rb