Template:Nobreak/doc

Simple template to convert spaces before certain text to non-breakable space.

Parameters

 * string: String where certain spaces should be replaced with non-breakable spaces. Required.
 * before: Text that should be preceded by non-breakable space instead of normal space. Optional.
 * after: Text that should be followed by non-breakable space instead of normal space. Optional.

Example
Imagine this ugly table of item prices:

Now if we want to disallow line-breaks after arrows (→) and before coppers (cp), we can format item value like this: which will display the following table: