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