Method: Docxi::Word::Contents::Paragraph#render

Defined in:
lib/docxi/word/contents/paragraph.rb

#render(xml) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/docxi/word/contents/paragraph.rb', line 19

def render(xml)
  xml['w'].p do
    xml['w'].pPr do
      xml['w'].jc( 'w:val' => @options[:align]) if @options[:align]
      if options[:ul]
        xml['w'].numPr do
          xml['w'].ilvl( 'w:val' => 0 )
          xml['w'].numId( 'w:val' => 1 )
        end
      end
    end
    @content.each do |element|
      element.render(xml)
    end
  end
end