Fix matching on newlines, accidentally matching similar tags