

def remove(self, pattern, replacement, findList, raw):
    pattern = re.compile(('(?<=\\n)\\s*?' + pattern), (re.S | re.I))
    findList.extend(pattern.findall(raw))
    return pattern.sub((lambda match: (match.group(0)[:(- len(match.group(0).lstrip()))] + replacement)), raw)

dataset/ETHPy150Open akalongman/sublimetext-codeformatter/codeformatter/lib/htmlbeautifier/__init__.py Beautifier.remove/original