lib/caracal/renderers/document_renderer.rb in caracal-1.0.0 vs lib/caracal/renderers/document_renderer.rb in caracal-1.0.1
- old
+ new
@@ -72,12 +72,9 @@
if paragraph_level && attrs.empty?
# skip
else
xml.send 'w:rPr' do
- puts '='*80
- puts attrs.inspect
- puts '='*80
unless attrs.empty?
xml.send 'w:rStyle', { 'w:val' => attrs[:style] } unless attrs[:style].nil?
xml.send 'w:color', { 'w:val' => attrs[:color] } unless attrs[:color].nil?
xml.send 'w:sz', { 'w:val' => attrs[:size] } unless attrs[:size].nil?
xml.send 'w:b', { 'w:val' => (attrs[:bold] ? '1' : '0') } unless attrs[:bold].nil?