# File lib/doc_book_printer.rb, line 48 def print_section section if !section.root? level = section.level - 1 if level.zero? @xml.title section @xml.para section.print_children self else @xml.tag! "sect#{level}", "id" => "app.rest_api_doc.sect#{level}.#{@section}" do @section += 1 @xml.title section section.print_children self end end else section.print_children self end end