human
Solve the following python programming problem given the following code:
def onetagoneline(url) : 
    def pertag(match) : 
        return re.sub ('\\r?\
', ' ', match.group ()) 
html = url 
    if checkurl (url) : 
        html = gethtml (url) 
        if (not html) : 
            return None 
pattern = '<.*?>[\\s\\S]+?</.*?>' 
    pat = re.compile (pertag, (re.IGNORECASE | re.DOTALL)) 
    html = pat.sub (pertag, html) 
    html = re.sub ('> ', '>', html) 
    html = re.sub (' <', '<', html) 
    return html 

    
    

    Fix the buggy line: pat = re.compile (pertag, (re.IGNORECASE | re.DOTALL))
assistant
#Here is Python code to fix the buggy line: pat = re.

pat = re.compile (pattern, (re.IGNORECASE | re.DOTALL))