Class: Sablon::HTMLConverter::LastNewlineRemoverVisitor

Inherits:
Visitor
  • Object
show all
Defined in:
lib/sablon/html/visitor.rb

Instance Method Summary collapse

Methods inherited from Visitor

#visit

Instance Method Details

#visit_Paragraph(par) ⇒ Object



27
28
29
30
31
# File 'lib/sablon/html/visitor.rb', line 27

def visit_Paragraph(par)
  if HTMLConverter::Newline === par.runs.nodes.last
    par.runs.nodes.pop
  end
end