Browse Source

REPORT-28245 <img>标签不属于块级元素

release/10.0
Hugh.C 5 years ago
parent
commit
1b7727fb69
  1. 2
      fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java

2
fine-itext/src/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java

@ -526,7 +526,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
cprops.removeChain(follow); cprops.removeChain(follow);
return; return;
} }
if (tag.equals("font") || tag.equals("span")) { if (tag.equals("font") || tag.equals("span") || tag.equals("img")) {
cprops.removeChain(tag); cprops.removeChain(tag);
return; return;
} }

Loading…
Cancel
Save