def process_text_p( element, output_node )
      style_name = register_style( element )

      # always include class attribute
      attr_hash = {"class" => style_name}

      # If this paragraph has the same style as the previous one,
      # and a top border, and doesn't have style:join-border set to false
      # then eliminate the top border to merge it with previous paragraph
      if (style_name != nil && @previous_para_style == style_name) then
        if (@style_info[style_name].has_top_border? &&
          element.attribute_value("#{@style_ns}:join-border") !=
          false) then
          attr_hash["style"] = "border-top: none"
          modify_style_attribute( @previous_para,
            "border-bottom", "none")
        end
      end
      para  = emit_element( output_node, "p", attr_hash )
      @previous_para_style = style_name
      @previous_para = para
      if (element.has_elements? || element.has_text?) then
        process_children( element, para )
      # else
      #   para.add_element("br")
      end
    end
def process_text_p( element, output_node )
      style_name = register_style( element )

      # always include class attribute
      attr_hash = {"class" => style_name}

      # If this paragraph has the same style as the previous one,
      # and a top border, and doesn't have style:join-border set to false
      # then eliminate the top border to merge it with previous paragraph
      if (style_name != nil && @previous_para_style == style_name) then
        if (@style_info[style_name].has_top_border? &&
          element.attribute_value("#{@style_ns}:join-border") !=
          false) then
          attr_hash["style"] = "border-top: none"
          modify_style_attribute( @previous_para,
            "border-bottom", "none")
        end
      end
      para  = emit_element( output_node, "p", attr_hash )
      @previous_para_style = style_name
      @previous_para = para
      if (element.has_elements? || element.has_text?) then
        process_children( element, para )
      # else
      #   para.add_element("br")
      end
    end
Paragraphs are processed as <tt>&lt;p&gt;</tt> elements.
 / This is no longer valid
 A <tt>&lt;text:p&gt;</tt> with no children will generate
 a <tt>&lt;br /&gt;</tt>.