import re


def remove_extra_whitespace(line):
    """ Removes all line breaking characters.
    Collapses consecutive spaces into just one space """

    line = line.lstrip()
    line = re.sub('[\n\r\f\v\t]', ' ', line)
    line = re.sub('  +', ' ', line )

    return line