Add optional newline to the end of chains.