fix linewrapping issue caused by unescaped colours