optimise line breaks