Sha256: ea58400c0ada3e744e8c1178c0599248338280b5572f3f80f40db8bf20b1ac8b

Contents?: true

Size: 482 Bytes

Versions: 7

Compression:

Stored size: 482 Bytes

Contents

require 'examples/example_workbook'

# $ bundle exec ruby examples/text.rb

ExampleWorkbook.new("text") do

  style 'general_text' do
    alignment(:horizontal => :left, :vertical => :top, :wrap_text => true)
    # set format to text explicitly
    number_format("@")
  end

  worksheet('text') do
    column

    row {
      cell(:style_id => "general_text") {
        data %{
A blob of <text>
with line breaks, /escaped/ characters
  & "leading" 'space'}
      }
    }
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
xmlss-1.0.1 examples/text.rb
xmlss-1.0.0 examples/text.rb
xmlss-1.0.0.rc.4 examples/text.rb
xmlss-1.0.0.rc.3 examples/text.rb
xmlss-1.0.0.rc.2 examples/text.rb
xmlss-1.0.0.rc.1 examples/text.rb
xmlss-0.4.1 examples/text.rb