Method: IsoDoc::Function::Section#foreword
- Defined in:
- lib/isodoc/function/section.rb
#foreword(isoxml, out) ⇒ Object
166 167 168 169 170 171 172 173 |
# File 'lib/isodoc/function/section.rb', line 166 def foreword(isoxml, out) f = isoxml.at(ns("//foreword")) || return page_break(out) out.div **attr_code(id: f["id"]) do |s| s.h1(**{ class: "ForewordTitle" }) { |h1| h1 << @foreword_lbl } f.elements.each { |e| parse(e, s) unless e.name == "title" } end end |