def isTab()

in src/filter-j2.py [0:0]


def isTab(tabName):
    """
    Returns whether we are currently within a tab having the given name, as
    dictated by prior calls to beginTab() and endTab().

    :param tabName:
        The name of the tab to test.

    :return bool:
        True if we are currently within the tab having the given name, False
        otherwise.
    """
    global tabStack
    return tabStack[-1] == tabName