|
|
|
@ -52,7 +52,7 @@ public class HtmlEx {
|
|
|
|
|
|
|
|
|
|
|
|
private static final int TO_HTML_PARAGRAPH_FLAG = 0x00000001;
|
|
|
|
private static final int TO_HTML_PARAGRAPH_FLAG = 0x00000001;
|
|
|
|
|
|
|
|
|
|
|
|
public HtmlEx(Context context){
|
|
|
|
public HtmlEx(Context context) {
|
|
|
|
this.context = context;
|
|
|
|
this.context = context;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -109,7 +109,7 @@ public class HtmlEx {
|
|
|
|
String elements = " ";
|
|
|
|
String elements = " ";
|
|
|
|
boolean needDiv = false;
|
|
|
|
boolean needDiv = false;
|
|
|
|
|
|
|
|
|
|
|
|
for(int j = 0; j < style.length; j++) {
|
|
|
|
for (int j = 0; j < style.length; j++) {
|
|
|
|
if (style[j] instanceof AlignmentSpan) {
|
|
|
|
if (style[j] instanceof AlignmentSpan) {
|
|
|
|
Layout.Alignment align =
|
|
|
|
Layout.Alignment align =
|
|
|
|
((AlignmentSpan) style[j]).getAlignment();
|
|
|
|
((AlignmentSpan) style[j]).getAlignment();
|
|
|
|
@ -465,6 +465,8 @@ public class HtmlEx {
|
|
|
|
out.append(((ImageSpan) style[j]).getSource());
|
|
|
|
out.append(((ImageSpan) style[j]).getSource());
|
|
|
|
out.append("\"");
|
|
|
|
out.append("\"");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
out.append("style=\"max-width: 100%; height: auto;\"");
|
|
|
|
|
|
|
|
|
|
|
|
if (style[j] instanceof ImageSpanEx) {
|
|
|
|
if (style[j] instanceof ImageSpanEx) {
|
|
|
|
ImageSpanEx img = (ImageSpanEx) style[j];
|
|
|
|
ImageSpanEx img = (ImageSpanEx) style[j];
|
|
|
|
int w = img.getWidth();
|
|
|
|
int w = img.getWidth();
|
|
|
|
|