Blog 1

Random Talk on Random Thoughts

Non-breaking Spaces

| Comments |

Why use them?

This evening, when I was writing a post about an ImageMagick command that I’ve learnt, I used the unit “pixel” to describe the dimensions of an image.1 In a measurement, the quantity and the unit should be separated by a non-breaking space for the sake of readability.2

To illustrate the effect of a non-breaking space, I’ll use some screenshots.

With non-breaking space

nbsp1

nbsp2

Without non-breaking space

space1

space2

How to use them?

Unlike pandoc markdown, one can’t use \ for a non-breaking space.3

The external URL of this linklog has a link to a Wikipedia page which is cited in footnote 2. From the table in the section “Keyboard entry methods”, I can directly insert the non-breaking space character using Linux compose key.4


  1. 5 ImageMagick Command Line Examples–part 1 in Blog 1. 

  2. Non-breaking space. (2014, September 4). In Wikipedia, The Free Encyclopedia. Retrieved 11:13, September 14, 2014, from http://en.wikipedia.org/w/index.php?title=Non-breaking_space&oldid=624117646#Non-breaking_behavior 

  3. Pandoc’s markdown by John MacFarlane. 

  4. For a list of Linux compose keys, see Linux Compose Keys List

Comments