Sha256: dd16b564803590f3a4df3ffe6373f75b2692cdfd5974203740b555d05f70d8f5

Contents?: true

Size: 768 Bytes

Versions: 5

Compression:

Stored size: 768 Bytes

Contents

# coding: utf-8

example :word_wrap, 'Word-wrap property of TextBlock' do |t|
  Thinreports::Report.generate filename: t.output_filename do
    use_layout t.layout_filename
    start_new_page

    page.item(:locale).value('ja')

    text = 'Thinreports は Ruby 向けのオープンソース帳票・PDF ツールです。'
    page.values single_none: text,
                single_break_word: text,
                multiple_none: text,
                multiple_break_word: text

    start_new_page

    page.item(:locale).value('en')

    text = 'Thinreports is the OSS reporting tool for Ruby-lang.'
    page.values single_none: text,
                single_break_word: text,
                multiple_none: text,
                multiple_break_word: text
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.9.1 examples/word_wrap/word_wrap.rb
thinreports-0.9.0 examples/word_wrap/word_wrap.rb
thinreports-0.8.2 examples/word_wrap/word_wrap.rb
thinreports-0.8.1 examples/word_wrap/word_wrap.rb
thinreports-0.8.0 examples/word_wrap/word_wrap.rb