sculpt 0.1.01 → 0.1.02

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sculpt/sculpture.rb +6 -1
  2. metadata +1 -1
@@ -25,7 +25,12 @@ class Sculpture < ElementContainer
25
25
 
26
26
  def p(text='',attrs = {},&block)
27
27
  # necessary to override the Kernel#p method
28
- add_tag Tag.new(:p, text.unindent.lstrip, attrs, &block)
28
+ if text.kind_of? String
29
+ txt = text.unindent.lstrip # for multi-line strings
30
+ else
31
+ txt = text
32
+ end
33
+ add_tag Tag.new(:p, txt, attrs, &block)
29
34
  end
30
35
 
31
36
  def puts(text)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sculpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.01
4
+ version: 0.1.02
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: