Class: Pslm::LatexOutputter::VersesFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/pslm/latexoutputter.rb

Overview

inserts a newline between verses

Instance Method Summary collapse

Methods inherited from Formatter

format, #initialize, #part_format, #psalm_format, #strophe_format, #syllable_format, #word_format

Constructor Details

This class inherits a constructor from Pslm::LatexOutputter::Formatter

Instance Method Details

#verse_format(text, verse, strophe, psalm) ⇒ Object



326
327
328
329
330
331
332
# File 'lib/pslm/latexoutputter.rb', line 326

def verse_format(text, verse, strophe, psalm)
  if verse != psalm.verses.last and text != '' then
    return text + "\n"
  else
    return text
  end
end