Browse Source

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

Merge in CORE/base-third from ~HUGH.C/base-third:release/10.0 to release/10.0

* commit '4ce376fd5aea0d964d57ecd7effd40a2653e6666':
  REPORT-33908 HTML高度计算异常(br标签中的line-height属性应该生效)
release/10.0
Hugh.C 4 years ago
parent
commit
9327ecb32a
  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