Sha256: 2206bc97b7df53759f876bc03d021b2cebf6562f75e0d348e2acd6e011c69dd2

Contents?: true

Size: 1.72 KB

Versions: 21

Compression:

Stored size: 1.72 KB

Contents

*{:tag=>title? ? 'table' : 'informaltable', :id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext),
    :frame=>(attr :frame, 'all'), :rowsep=>['none', 'cols'].include?(attr :grid) ? 0 : 1, :colsep=>['none', 'rows'].include?(attr :grid) ? 0 : 1}
  - if title?
    title=title
  - if attr? :width
    <?dbhtml table-width="#{attr :width}"?>
    <?dbfo table-width="#{attr :width}"?>
    <?dblatex table-width="#{attr :width}"?>
  tgroup cols=(attr :colcount)
    - @columns.each do |col|
      colspec colname="col_#{col.attr :colnumber}" colwidth="#{col.attr((attr? :width) ? :colabswidth : :colpcwidth)}*" /
    - [:head, :foot, :body].select {|tblsec| !@rows[tblsec].empty? }.each do |tblsec|
      *{:tag=>"t#{tblsec}"}
        - @rows[tblsec].each do |row|
          row
            - row.each do |cell|
              entry(align=(cell.attr :halign) valign=(cell.attr :valign)
                  namest=(cell.colspan && "col_#{cell.column.attr :colnumber}")
                  nameend=(cell.colspan && "col_#{(cell.column.attr :colnumber) + cell.colspan - 1}")
                  morerows=(cell.rowspan && (cell.rowspan - 1)))
                - if tblsec == :head
                  =cell.text
                - else
                  - case cell.attr :style
                  - when :asciidoc
                    =cell.content
                  - when :verse
                    literallayout=cell.text
                  - when :literal
                    literallayout class='monospaced' =cell.text
                  - when :header
                    - cell.content.each do |text|
                      simpara: emphasis role='strong' =text
                  - else
                    - cell.content.each do |text|
                      simpara=text

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.9.pre.1 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.8 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.9 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.8 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.7 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.6 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.2 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.7.pre.1 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.6 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.5 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.5.pre.1 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.4 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.3 lib/resources/backends/slim/docbook45/block_table.xml.slim
hyla-1.0.2 lib/resources/backends/slim/docbook45/block_table.xml.slim