class Caramelize::AddNewlineToPageEnd
Public Class Methods
new(body)
click to toggle source
# File lib/caramelize/filters/add_newline_to_page_end.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/add_newline_to_page_end.rb, line 10 def run return @body if @body[@body.length - 1] == "\n" migrated_body = @body.dup migrated_body << "\n" migrated_body end