|
|
@ -257,7 +257,7 @@ public class HtmlEx {
|
|
|
|
isInBulletList = null;
|
|
|
|
isInBulletList = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String tagType = isBulletListItem != null ? "li" : "p";
|
|
|
|
String tagType = isBulletListItem != null ? "li" : "span";
|
|
|
|
out.append("<").append(tagType)
|
|
|
|
out.append("<").append(tagType)
|
|
|
|
.append(getTextDirection(text, i, next))
|
|
|
|
.append(getTextDirection(text, i, next))
|
|
|
|
.append(getTextStyles(text, i, next, isBulletListItem == null, true))
|
|
|
|
.append(getTextStyles(text, i, next, isBulletListItem == null, true))
|
|
|
@ -268,6 +268,8 @@ public class HtmlEx {
|
|
|
|
out.append("</");
|
|
|
|
out.append("</");
|
|
|
|
out.append(tagType);
|
|
|
|
out.append(tagType);
|
|
|
|
out.append(">\n");
|
|
|
|
out.append(">\n");
|
|
|
|
|
|
|
|
if (isBulletListItem == null)
|
|
|
|
|
|
|
|
out.append("<br>\n");
|
|
|
|
|
|
|
|
|
|
|
|
if (next == end && isInBulletList != null) {
|
|
|
|
if (next == end && isInBulletList != null) {
|
|
|
|
out.append(isInBulletList ? "</ul>\n" : "</ol>\n");
|
|
|
|
out.append(isInBulletList ? "</ul>\n" : "</ol>\n");
|
|
|
|