class Slaw::Grammars::Tables::TableLine
Public Instance Methods
to_xml(b, i, tail)
click to toggle source
line of table content
# File lib/slaw/grammars/tables_nodes.rb, line 63 def to_xml(b, i, tail) inline_items.to_xml(b) unless inline_items.empty? # add trailing newlines. # for the first line, eat whitespace at the start # for the last line, eat whitespace at the end if not tail and (i > 0 or not inline_items.empty?) eol.text_value.count("\n").times { b.eol } end end