Shorten fixes

When shortening and even a single word doesn't fit on line, switch mode to shorten char by char and from the center.

It also fixes a markup bug where if width was restricted and therefore while layouting a single word was split across multiple lines, when the lines were shortened and rejoined into a single line, each new line is replaced by a space, so the broken up word would've had a space in the middle of the word.