Sha256: 08156ecdb32b1082963a1eed62020c1b455f90f5de88c8f6787f1ec7d4449a39

Contents?: true

Size: 152 Bytes

Versions: 23

Compression:

Stored size: 152 Bytes

Contents

module BibTeX
  module Filters

    class LineBreaks < Filter
      def apply(value)
        value.to_s.gsub(/\n\s*/, ' ')
      end
    end

  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
bibtex-ruby-4.0.11 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.10 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.9 lib/bibtex/filters/linebreaks.rb