def handle_whitespace(text):
text = re_retab.sub(sub_retab, text)<EOL>text = re_whitespace.sub('<STR_LIT>', text).strip()<EOL>return text<EOL>
r"""Handles whitespace cleanup.

    Tabs are "smartly" retabbed (see sub_retab). Lines that contain
    only whitespace are truncated to a single newline.