Deep shame on my part! At one paragraph break I'd typed n\n\ when it should have been \n\n. Everything is now working perfectly. Thanks for your help, ER.