Method: IsoDoc::Function::Section#table_of_contents

Defined in:
lib/isodoc/function/section.rb

#table_of_contents(clause, out) ⇒ Object



154
155
156
157
158
159
160
161
162
163
# File 'lib/isodoc/function/section.rb', line 154

def table_of_contents(clause, out)
  page_break(out)
  out.div **attr_code(preface_attrs(clause)) do |div|
    clause_name(clause, clause.at(ns("./title")), div,
                { class: "IntroTitle" })
    clause.elements.each do |e|
      parse(e, div) unless e.name == "title"
    end
  end
end