- String[] htmllines = ttext.split("<br>");
- for (String line : htmllines)
- {
- maxLengthExceeded = line.length() > 60;
- if (maxLengthExceeded)
- {
- break;
- }
- }
+ ttext = ttext.substring(6);
+ }
+ if (ttext.endsWith("</html>"))
+ {
+ isHTML = true;
+ ttext = ttext.substring(0, ttext.length() - 7);
+ }
+ boolean hasBR = ttext.contains("<br>");
+ enclose |= isHTML || hasBR;
+ if (hasBR)
+ {
+
+// Too complex in HTML5 to mix <br> with word wrapping.
+//
+// String[] htmllines = ttext.split("<br>");
+// for (String line : htmllines)
+// {
+// maxLengthExceeded = line.length() > 60;
+// if (maxLengthExceeded)
+// {
+// break;
+// }
+// }