KMake PrawnPDF table cell do not break

68 views Asked by At

How to make prawnpdf cell do not break?

require 'prawn'
require 'prawn/table'

t = [
  ['No.', 'Batch', 'Prog Session', 'Class Group', 'Subject', 'Lecturer', 'Coord. By', 'Room', 'Time', 'Merged', 'Capacity'],      
  ['1', 'LAW-2013', 'M', 'Class 1', 'MEDIA AND IT LAW', 'Muhammad Abdul Sholeh', '', '', '', 'Merged with another class', '40']
]

Prawn::Document.generate(OUTFILE, page_layout: :landscape) do
  text 'foo'
  font_size 9
  table t, header: true
end

broken cell

the 'LAW-2013' part is breaking, I need it in one line.

0

There are 0 answers