

@ensure_tag(['p'])
def is_title(p):
    '\n    Certain p tags are denoted as ``Title`` tags. This function will return\n    True if the passed in p tag is considered a title.\n    '
    w_namespace = get_namespace(p, 'w')
    styles = p.xpath('.//w:pStyle', namespaces=p.nsmap)
    if (len(styles) == 0):
        return False
    style = styles[0]
    return (styles.get(('%sval' % w_namespace)) == 'Title')

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py is_title/VarMisuse@69/144 `style`->`styles`