Fyrimynd:Mdashb
—
Creates a "mdash breakable" i.e. an mdash followed by a zwsp (zero-width space).
Many browsers will not break a line after an mdash (and they never break before an mdash) so word{{mdash}}word
becomes a very big unbreakable sequence, causing bad line breaks. Coding word{{mdashb}}word
is the equivalent of word{{mdash}}{{zwsp}}word
. A zwsp (zero-width space) signals the browser that it's OK to break at that point.
Dokumentatiónin omanfyri er tikin frá Fyrimynd:Mdashb/doc. (rætta | søga) Editors can experiment in this template's sandkassi (upprætta | mirror) and testcases (upprætta) pages. Please add categories to the /doc subpage. Undirsíður til hesa/hetta fyrimyndina. |