fixed #270 : better error messages when line ends with wrap-char