Sha256: 07caceaba65e054d46ebc5210e9c7f893cb5b9e8006832f0efc4aab7048ad15e

Contents?: true

Size: 159 Bytes

Versions: 38

Compression:

Stored size: 159 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

38 entries across 38 versions & 1 rubygems

Version Path
bibtex-ruby-4.0.8 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.7 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.6 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.5 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.4 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.3 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.2 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.1 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.1.6 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.1.5 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.1.4 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.1.3 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.1.2 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.1.1 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.1.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.0.1 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-3.0.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-2.3.4 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-2.3.3 lib/bibtex/filters/linebreaks.rb