[Frontend-STFL] Wrap lines correctly (closes #849).

Rewrite the line-wrapping code of STFL not to count style specifications toward
the line length and to wrap at word boundaries if possible.