Applied patch from Larry Doolittle to fix '>\na\n' bug. Should close bug #1132