

def get_text_run_content(el, meta_data, remove_bold, remove_italics):
    w_namespace = get_namespace(el, 'w')
    text_output = ''
    for child in get_text_run_content_data(el):
        if (child.tag == ('%st' % w_namespace)):
            text_output += get_t_tag_content(child, el, remove_bold, remove_italics, meta_data)
        elif (child.tag == ('%sbr' % w_namespace)):
            text_output += '<br />'
        elif (child.tag in (('%spict' % w_namespace), ('%sdrawing' % w_namespace))):
            text_output += build_image(child, meta_data)
        else:
            raise SyntaxNotSupported(('"%s" is not a supported content-containing text run child.' % child.tag))
    return text_output

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py get_text_run_content/original