Browse Source

REPORT-33908 HTML高度计算异常(br标签中的line-height属性应该生效)

release/10.0
Hugh.C 4 years ago
parent
commit
dca9933bfe
  1. 6
      fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java

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

@ -244,7 +244,8 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
}
if (tag.equals(HtmlTags.NEWLINE)) {
if (currentParagraph == null) {
currentParagraph = new Paragraph();
currentParagraph = FactoryProperties
.createParagraph(cprops);
}
currentParagraph.add(factoryProperties
.createChunk("\n", cprops));
@ -553,8 +554,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
}
if (tag.equals("a")) {
if (currentParagraph == null) {
currentParagraph = FactoryProperties
.createParagraph(cprops);
currentParagraph = new Paragraph();
}
boolean skip = false;
if (interfaceProps != null) {

Loading…
Cancel
Save