Class: BibTeX::Filters::LineBreaks

Inherits:
BibTeX::Filter show all
Defined in:
lib/bibtex/filters/linebreaks.rb

Instance Method Summary collapse

Methods inherited from BibTeX::Filter

inherited, subclasses

Instance Method Details

#apply(value) ⇒ Object



4
5
6
# File 'lib/bibtex/filters/linebreaks.rb', line 4

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