Method: IsoDoc::WordFunction::Body#table_parse

Defined in:
lib/isodoc/word_function/body.rb

#table_parse(node, out) ⇒ Object



248
249
250
251
252
253
254
255
256
257
258
259
260
261
# File 'lib/isodoc/word_function/body.rb', line 248

def table_parse(node, out)
  @in_table = true
  table_title_parse(node, out)
  out.div **{ align: "center" } do |div|
    div.table **make_table_attr(node) do |t|
      thead_parse(node, t)
      tbody_parse(node, t)
      tfoot_parse(node, t)
      (dl = node.at(ns("./dl"))) && parse(dl, out)
      node.xpath(ns("./note")).each { |n| parse(n, out) }
    end
  end
  @in_table = false
end