Sha256: c83571c089d27ba2f2fa2cbff1ed8838b43ff0a17f9608b4929a4fa04cd95f76

Contents?: true

Size: 150 Bytes

Versions: 13

Compression:

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

13 entries across 13 versions & 2 rubygems

Version Path
bibtex-ruby-6.1.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-6.0.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.1.6 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.1.5 lib/bibtex/filters/linebreaks.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/bibtex-ruby-5.1.4/lib/bibtex/filters/linebreaks.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/bibtex-ruby-5.1.4/lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.1.4 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.1.3 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.1.2 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.1.1 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.1.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.0.1 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-5.0.0 lib/bibtex/filters/linebreaks.rb