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


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

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