KMake PrawnPDF表格单元格不破

时间:2015-06-24 07:28:13

标签: ruby prawn

如何使prawnpdf单元格不中断?

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

' LAW-2013'部分是破碎的,我需要一行。

0 个答案:

没有答案