File: breakable-tables-tree-processor.rb

package info (click to toggle)
ruby-asciidoctor-pdf 2.3.19-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,972 kB
  • sloc: ruby: 44,316; sh: 133; java: 45; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 287 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
Asciidoctor::Extensions.register do
  tree_processor do
    process do |doc|
      doc.find_by context: :table do |table|
        unless (table.option? 'breakable') || (table.option? 'unbreakable')
          table.set_option 'breakable'
        end
      end
      doc
    end
  end
end