Swapping 'then' for newlines in some cases