|
|
|
@ -1891,7 +1891,7 @@ public class HtmlHelper {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// https://tools.ietf.org/html/rfc3676
|
|
|
|
|
static String flow(String text) {
|
|
|
|
|
static String flow(String text, boolean delsp) {
|
|
|
|
|
boolean continuation = false;
|
|
|
|
|
StringBuilder flowed = new StringBuilder();
|
|
|
|
|
String[] lines = text.split("\\r?\\n");
|
|
|
|
@ -1899,6 +1899,9 @@ public class HtmlHelper {
|
|
|
|
|
String line = lines[l];
|
|
|
|
|
lines[l] = null;
|
|
|
|
|
|
|
|
|
|
if (delsp && line.length() > 0)
|
|
|
|
|
line = line.substring(0, line.length() - 1);
|
|
|
|
|
|
|
|
|
|
if (continuation)
|
|
|
|
|
while (line.startsWith(">")) {
|
|
|
|
|
line = line.substring(1);
|
|
|
|
|