Method: IsoDoc::WordFunction::Body#table_parse
- Defined in:
- lib/isodoc/word_function/table.rb
#table_parse(node, out) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/isodoc/word_function/table.rb', line 57 def table_parse(node, out) @in_table = true table_title_parse(node, out) out.div **{ align: "center", class: "table_container" } do |div| div.table **table_attrs(node) do |t| colgroup(node, 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 |