james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Untz <vu...@gnome.org>
Subject [PATCH] Consistently use CRLF for line breaks in QuotedPrintableOutputStream
Date Mon, 15 Apr 2013 02:41:01 GMT

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



PS: I'm not subscribed to the list, so please cc me on replies.

Les gens heureux ne sont pas press├ęs.

View raw message