def write_tx_body(shape)
      attributes = [
                    [:vertOverflow, "clip"],
                    [:wrap,         "square"],
                    [:lIns,         "27432"],
                    [:tIns,         "22860"],
                    [:rIns,         "27432"],
                    [:bIns,         "22860"],
                    [:anchor,       shape.valign],
                    [:upright,      "1"]
                   ]
      @writer.tag_elements('xdr:txBody') do
        @writer.empty_tag('a:bodyPr', attributes)
        @writer.empty_tag('a:lstStyle')

        @writer.tag_elements('a:p') do
          rotation = shape.format[:rotation] || 0
          rotation *= 60000

          attributes = [
                        [:algn, shape.align],
                        [:rtl, rotation]
                       ]
          @writer.tag_elements('a:pPr', attributes) do
            attributes = [ [:sz, "1000"] ]
            @writer.empty_tag('a:defRPr', attributes)
          end

          @writer.tag_elements('a:r') do
            size = shape.format[:size] || 8
            size *= 100

            bold      = shape.format[:bold]      || 0
            italic    = shape.format[:italic]    || 0
            underline = ptrue?(shape.format[:underline]) ? 'sng' : 'none'
            strike    = ptrue?(shape.format[:font_strikeout]) ? 'Strike' : 'noStrike'

            attributes = [
                          [:lang,     "en-US"],
                          [:sz,       size],
                          [:b,        bold],
                          [:i,        italic],
                          [:u,        underline],
                          [:strike,   strike],
                          [:baseline, 0]
                         ]
            @writer.tag_elements('a:rPr', attributes) do
              color = shape.format[:color]
              if color
                color = shape.palette_color(color)
                color = color.sub(/^FF/, '')  # Remove leading FF from rgb for shape color.
              else
                color = '000000'
              end

              write_a_solid_fill(color)

              font = shape.format[:font] || 'Calibri'
              attributes = [ [:typeface, font] ]
              @writer.empty_tag('a:latin', attributes)
              @writer.empty_tag('a:cs', attributes)
            end
            @writer.tag_elements('a:t') do
              @writer.characters(shape.text)
            end
          end
        end
      end
    end
def write_tx_body(shape)
      attributes = [
                    [:vertOverflow, "clip"],
                    [:wrap,         "square"],
                    [:lIns,         "27432"],
                    [:tIns,         "22860"],
                    [:rIns,         "27432"],
                    [:bIns,         "22860"],
                    [:anchor,       shape.valign],
                    [:upright,      "1"]
                   ]
      @writer.tag_elements('xdr:txBody') do
        @writer.empty_tag('a:bodyPr', attributes)
        @writer.empty_tag('a:lstStyle')

        @writer.tag_elements('a:p') do
          rotation = shape.format[:rotation] || 0
          rotation *= 60000

          attributes = [
                        [:algn, shape.align],
                        [:rtl, rotation]
                       ]
          @writer.tag_elements('a:pPr', attributes) do
            attributes = [ [:sz, "1000"] ]
            @writer.empty_tag('a:defRPr', attributes)
          end

          @writer.tag_elements('a:r') do
            size = shape.format[:size] || 8
            size *= 100

            bold      = shape.format[:bold]      || 0
            italic    = shape.format[:italic]    || 0
            underline = ptrue?(shape.format[:underline]) ? 'sng' : 'none'
            strike    = ptrue?(shape.format[:font_strikeout]) ? 'Strike' : 'noStrike'

            attributes = [
                          [:lang,     "en-US"],
                          [:sz,       size],
                          [:b,        bold],
                          [:i,        italic],
                          [:u,        underline],
                          [:strike,   strike],
                          [:baseline, 0]
                         ]
            @writer.tag_elements('a:rPr', attributes) do
              color = shape.format[:color]
              if color
                color = shape.palette_color(color)
                color = color.sub(/^FF/, '')  # Remove leading FF from rgb for shape color.
              else
                color = '000000'
              end

              write_a_solid_fill(color)

              font = shape.format[:font] || 'Calibri'
              attributes = [ [:typeface, font] ]
              @writer.empty_tag('a:latin', attributes)
              @writer.empty_tag('a:cs', attributes)
            end
            @writer.tag_elements('a:t') do
              @writer.characters(shape.text)
            end
          end
        end
      end
    end
Write the <xdr:txBody> element.