Revert "Optimize for one-line tokens in FormattingWriter.write()"

It broke test39 (string template corner cases). I need a solution based
on the token type instead of the token text. (As in: only tokens of type
string literal, string start, string mid, string end, verbatim string,
and multi comment can contain line breaks.)

This reverts commit 45ab44cbdd414ec8f923b70e97557220a75edab1.