aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-12-09 22:28:28 -0500
committerRalph Amissah <ralph@amissah.com>2013-12-09 22:28:28 -0500
commitb9bffa35fa103c9c5613102ec1ed76fc8964c773 (patch)
tree3a8e02e15130037f5c98cd5b8a73b6881b1f6f6f /lib/sisu/v5
parentv4 v5: Rakefile, (installer) improve, re-arrange (diff)
v5: docbook, structure, a fixsisu_4.2.15
* construction zone: structure okish; docbook generated not usable
Diffstat (limited to 'lib/sisu/v5')
-rw-r--r--lib/sisu/v5/xml_docbook5.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/sisu/v5/xml_docbook5.rb b/lib/sisu/v5/xml_docbook5.rb
index d3840d18..9e02af39 100644
--- a/lib/sisu/v5/xml_docbook5.rb
+++ b/lib/sisu/v5/xml_docbook5.rb
@@ -213,13 +213,16 @@ module SiSU_XML_Docbook_Book
? @chlv=o.lc.to_i
: 0
@splv=lev
- unless doc_position==:head
+ tag_id=o.tags[0] ? %{ id="#{o.tags[0]}" } : ''
+ if doc_position ==:head
+ filename_docbook.puts %{#{space*lev}<title#{id}>}
+ doc_position=:body_and_tail
+ else
filename_docbook.puts structure_build_tag_close(lev,h)
- end
- doc_position=:body_and_tail
- filename_docbook.puts %{#{space*(lev-1)}<#{tags.docbook(lev,chlv)}>
+ filename_docbook.puts %{#{space*(lev-1)}<#{tags.docbook(lev,chlv)}#{tag_id}>
#{space*lev}<title#{id}>
}
+ end
filename_docbook.puts SiSU_TextUtils::Wrap.new(o.obj + ocn,80,(@splv*2+2)).line_wrap
filename_docbook.puts %{#{space*lev}</title>}
h=lev