|
|
@ -2443,15 +2443,23 @@ public class HtmlHelper {
|
|
|
|
ssb.append('\n');
|
|
|
|
ssb.append('\n');
|
|
|
|
|
|
|
|
|
|
|
|
int j = 0;
|
|
|
|
int j = 0;
|
|
|
|
|
|
|
|
boolean p = false;
|
|
|
|
String[] w = h.split("\\s+");
|
|
|
|
String[] w = h.split("\\s+");
|
|
|
|
while (j < w.length) {
|
|
|
|
while (j < w.length) {
|
|
|
|
|
|
|
|
if (w[j].startsWith("("))
|
|
|
|
|
|
|
|
p = true;
|
|
|
|
|
|
|
|
|
|
|
|
if (j > 0)
|
|
|
|
if (j > 0)
|
|
|
|
ssb.append(' ');
|
|
|
|
ssb.append(' ');
|
|
|
|
|
|
|
|
|
|
|
|
s = ssb.length();
|
|
|
|
s = ssb.length();
|
|
|
|
ssb.append(w[j]);
|
|
|
|
ssb.append(w[j]);
|
|
|
|
if (words.contains(w[j].toLowerCase(Locale.ROOT)))
|
|
|
|
if (!p && words.contains(w[j].toLowerCase(Locale.ROOT)))
|
|
|
|
ssb.setSpan(new ForegroundColorSpan(textColorLink), s, ssb.length(), 0);
|
|
|
|
ssb.setSpan(new ForegroundColorSpan(textColorLink), s, ssb.length(), 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (w[j].endsWith(")"))
|
|
|
|
|
|
|
|
p = false;
|
|
|
|
|
|
|
|
|
|
|
|
j++;
|
|
|
|
j++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ssb.append("\n\n");
|
|
|
|
ssb.append("\n\n");
|
|
|
|