Added DelSp support

This commit is contained in:
M66B
2022-02-12 23:18:05 +01:00
parent 472b3c5408
commit b9db0f7405
2 changed files with 7 additions and 2 deletions

View File

@@ -2917,8 +2917,10 @@ public class MessageHelper {
} else if (StandardCharsets.UTF_8.equals(cs))
result = CharsetHelper.utf8toW1252(result);
// https://datatracker.ietf.org/doc/html/rfc3676
if ("flowed".equalsIgnoreCase(h.contentType.getParameter("format")))
result = HtmlHelper.flow(result);
result = HtmlHelper.flow(result,
"yes".equalsIgnoreCase(h.contentType.getParameter("delsp")));
// https://www.w3.org/QA/2002/04/valid-dtd-list.html
if (result.length() > DOCTYPE.length()) {