add behavior when do newline
fixed #3