In the mid-1800s, long before the advent of teleprinters and teletype machines, Morse code operators or telegraphists invented and used Morse code prosigns to encode white space text formatting in formal written text messages.
Later in the age of modern teleprinters standardized character set control codes were developed to aid in white space text formatting.