Human: compress multiple white space to single. Assistant: 
Here is a Python function to compress multiple white space to single space

import re

def compress_whitespace(text):
    """ Compress multiple white space to single """
    return re.sub(r'\s+','', text)

# Enter the text
text = "Hello \n World"

# Calling the function
print((compress_whitespace(text)))

#Example Output
# HelloWorld

#Remember to inspect code for bugs.