allow '\n' before '{' and after ':'