

def onetagoneline(url):

    def pertag(match):
        return re.sub('\\r?\\n', ' ', match.group())
    html = url
    if checkurl(html):
        html = gethtml(url)
        if (not html):
            return None
    pattern = '<.*?>[\\s\\S]+?</.*?>'
    pat = re.compile(pattern, (re.IGNORECASE | re.DOTALL))
    html = pat.sub(pertag, html)
    html = re.sub('> ', '>', html)
    html = re.sub(' <', '<', html)
    return html

dataset/ETHPy150Open miklevin/pipulate/common.py onetagoneline/VarMisuse@43/57 `url`->`html`