Use Non-breaking Spaces and Hyphens

Posted January 30, 2012

Instead of manually inserting line-breaks to ensure phone numbers, proper names and other pieces of information don’t get broken into multiple lines, replace spaces and hyphens with non-breaking spaces and hyphens.

For example, the phone number (800) 123-4567 can be represented this way:

  • (800)[space]123[hyphen]4567

Change that to:

  • (800)[non-breaking space]123[non-breaking hyphen]4567.

Now, when there’s only enough room to fit (800) 123- on the first line, the whole text block will wrap to the second.

Character Mac Windows
Non-breaking space Command Alt X Control Alt X
Non-breaking hyphen Command Alt - Control Alt -