Sha256: 208bba7f47452a0332e345931973fc736bfcd0a411270d3b7cb085f2e58107bd
Contents?: true
Size: 1.69 KB
Versions: 21
Compression:
Stored size: 1.69 KB
Contents
- case attr :style - when 'qanda' qandaset id=@id role=(attr :role) xreflabel=(attr :reftext) - if title? title=title - items.each do |terms, dd| qandaentry question - [*terms].each do |dt| simpara=dt.text - unless dd.nil? answer - if dd.text? simpara=dd.text - if dd.blocks? =dd.content - when 'glossary' - items.each do |terms, dd| glossentry - [*terms].each do |dt| glossterm=dt.text - unless dd.nil? glossdef - if dd.text? simpara=dd.text - if dd.blocks? =dd.content - when 'horizontal' *{:tag=>title? ? 'table' : 'informaltable', :id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext), :tabstyle=>'horizontal', :frame=>'none', :colsep=>0, :rowsep=>0} - if title? title=title tgroup cols=2 colspec colwidth="#{attr :labelwidth, 15}*" / colspec colwidth="#{attr :labelwidth, 85}*" / tbody valign='top' - items.each do |terms, dd| row entry - [*terms].each do |dt| simpara=dt.text - unless dd.nil? entry - if dd.text? simpara=dd.text - if dd.blocks? =dd.content - else variablelist id=@id role=(attr :role) xreflabel=(attr :reftext) - if title? title=title - items.each do |terms, dd| varlistentry - [*terms].each do |dt| term=dt.text - unless dd.nil? listitem - if dd.text? simpara=dd.text - if dd.blocks? =dd.content
Version data entries
21 entries across 21 versions & 1 rubygems