concrete5/concrete5 — pull request #1210 by patrickheck (2013-07-23 12:44:33+00:00)
Title: add TextHelper::preventWidows()

This is my suggestion how to implement this helper. The original pull request by @melat0nin was here: https://github.com/concrete5/concrete5/pull/1073

All it does is adding a non-breakable space beween the last two words of $text. Hence you won't have a line with just one word at the end.