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.4.7 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.4.6 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.4.5 lib/bibtex/filters/linebreaks.rb
bibtex_to_scrapbox-0.2.0 gems/gems/bibtex-ruby-4.4.4/lib/bibtex/filters/linebreaks.rb
bibtex_to_scrapbox-0.1.0 gems/gems/bibtex-ruby-4.4.4/lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.4.4 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.4.3 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.4.2 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.4.1 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.4.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.3.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.2.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.1.2 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.1.1 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.1.0 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.16 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.15 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.14 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.13 lib/bibtex/filters/linebreaks.rb
bibtex-ruby-4.0.12 lib/bibtex/filters/linebreaks.rb