def body_block_paragraph_render(p_tag, html_flag=True, base_url=None):
<EOL>convert = lambda xml_string: xml_to_html(html_flag, xml_string, base_url)<EOL>block_content_list = []<EOL>tag_content_content = []<EOL>nodenames = body_block_nodenames()<EOL>paragraph_content = u'<STR_LIT>'<EOL>for child_tag in p_tag:<EOL><INDENT>if child_tag.name is None or body_block_content(child_tag) == {}:<EOL><INDENT>paragraph_content = paragraph_content + unicode_value(child_tag)<EOL><DEDENT>else:<EOL><INDENT>if paragraph_content.strip() != '<STR_LIT>':<EOL><INDENT>tag_content_content.append(body_block_paragraph_content(convert(paragraph_content)))<EOL>paragraph_content = u'<STR_LIT>'<EOL><DEDENT><DEDENT>if child_tag.name is not None and body_block_content(child_tag) != {}:<EOL><INDENT>for block_content in body_block_content_render(child_tag, base_url=base_url):<EOL><INDENT>if block_content != {}:<EOL><INDENT>tag_content_content.append(block_content)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>if paragraph_content.strip() != '<STR_LIT>':<EOL><INDENT>tag_content_content.append(body_block_paragraph_content(convert(paragraph_content)))<EOL><DEDENT>if len(tag_content_content) > <NUM_LIT:0>:<EOL><INDENT>for block_content in tag_content_content:<EOL><INDENT>block_content_list.append(block_content)<EOL><DEDENT><DEDENT>return block_content_list<EOL>
paragraphs may wrap some other body block content
this is separated out so it can be called from more than one place