Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ private static String encodeQuotedPrintable(String input, String eol, boolean bi

// Check if adding this token would make the line too long
// We need to leave room for the '=' of a soft break, so max is 75
if (currentLength + token.length() > 75) {
// Empty EOL means Perl's "no soft breaks" mode (binary charset encoding only).
if (!eol.isEmpty() && currentLength + token.length() > 75) {
// Need to break the line
output.append(currentLine).append("=").append(eol);
currentLine = new StringBuilder(token);
Expand Down
Loading