fixed a problem where the final cr/lf was not included in the
copied text