add a newline when hitting enter between matching characters