Sha256: 5661a5c017bbf9660f0497a958010a3d5774dedd7bab582dfe1ab9bca0bf07a0
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true module Caramelize module Filter class AddNewlineToPageEnd def initialize(body) @body = body end # take an input stream and convert all wikka syntax to markdown syntax def run return @body if @body[@body.length - 1] == "\n" migrated_body = @body.dup migrated_body << "\n" migrated_body end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caramelize-1.2.1 | lib/caramelize/filters/add_newline_to_page_end.rb |