Sha256: 99f1dbfb347c9ac46464e6082f0c1d76c1563ff1670202137b1ce64eacd17458

Contents?: true

Size: 669 Bytes

Versions: 21

Compression:

Stored size: 669 Bytes

Contents

- if !title?
  - if attr?(:style, 'source') && attr?(:language)
    %programlisting{:id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext), :language=>(attr :language),
        :linenumbering=>((attr? :linenums) ? 'numbered' : 'unnumbered')}=content
  - else
    %screen{:id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext)}=content
- else
  %formalpara{:id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext)}
    %title=title
    %para
      - if attr?(:style, 'source') && attr?(:language)
        %programlisting{:language=>(attr :language), :linenumbering=>((attr? :linenums) ? 'numbered' : 'unnumbered')}=content
      - else
        %screen=content

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.1 lib/resources/backends/haml/docbook45/block_listing.xml.haml