class Caramelize::RemoveTableTabLineEndings
Public Class Methods
new(body)
click to toggle source
# File lib/caramelize/filters/remove_table_tab_line_endings.rb, line 5 def initialize(body) @body = body end
Public Instance Methods
run()
click to toggle source
take an input stream and convert all wikka syntax to markdown syntax
# File lib/caramelize/filters/remove_table_tab_line_endings.rb, line 10 def run migrated_body = @body.dup migrated_body.gsub!(/\|[\t ]*\r?\n/, "|\n") migrated_body end