lib/ruby_jard/span.rb in ruby_jard-0.3.0 vs lib/ruby_jard/span.rb in ruby_jard-0.3.1
- old
+ new
@@ -13,10 +13,10 @@
if !content.nil? && !content.empty?
content = ' ' * margin_left + content if margin_left > 0
content += ' ' * margin_right if margin_right > 0
end
- @content = content.to_s
+ @content = content.to_s.gsub(/\r\n/, '\n').gsub(/\n/, '\n')
@content_length = content_length || @content.length
@styles = styles
end
end
end