Ioan Eugen Stan created MIME4J-227:
--------------------------------------

             Summary: Consistently use CRLF for line breaks in 
QuotedPrintableOutputStream
                 Key: MIME4J-227
                 URL: https://issues.apache.org/jira/browse/MIME4J-227
             Project: James Mime4j
          Issue Type: Bug
          Components: parser (core)
            Reporter: Ioan Eugen Stan


Reported by Vincent Untz on the mailing list.

I noticed that when using text using LF for line breaks as input,
QuotedPrintableOutputStream has a mix of LF and CRLF in the output for
line breaks: current code just keeps LF where they are, but uses CRLF
when doing a soft break. As quoted-printable is specified as using CRLF
for line breaks, I guess it makes sense to just always use CRLF.

This has the nice side-effect of fixing two other bugs when input is
using LF:
 - soft break counter was not reset after the LF, so soft breaks are
   happening with no reason on some short lines
 - trailing space/tab is not encoded

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to