|
|
@ -244,8 +244,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener { |
|
|
|
} |
|
|
|
} |
|
|
|
if (tag.equals(HtmlTags.NEWLINE)) { |
|
|
|
if (tag.equals(HtmlTags.NEWLINE)) { |
|
|
|
if (currentParagraph == null) { |
|
|
|
if (currentParagraph == null) { |
|
|
|
currentParagraph = FactoryProperties |
|
|
|
currentParagraph = new Paragraph(); |
|
|
|
.createParagraph(cprops); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
currentParagraph.add(factoryProperties |
|
|
|
currentParagraph.add(factoryProperties |
|
|
|
.createChunk("\n", cprops)); |
|
|
|
.createChunk("\n", cprops)); |
|
|
@ -258,8 +257,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener { |
|
|
|
// end with a break, but a trailing break is always inserted.
|
|
|
|
// end with a break, but a trailing break is always inserted.
|
|
|
|
boolean addLeadingBreak = true; |
|
|
|
boolean addLeadingBreak = true; |
|
|
|
if (currentParagraph == null) { |
|
|
|
if (currentParagraph == null) { |
|
|
|
currentParagraph = FactoryProperties |
|
|
|
currentParagraph = new Paragraph(); |
|
|
|
.createParagraph(cprops); |
|
|
|
|
|
|
|
addLeadingBreak = false; |
|
|
|
addLeadingBreak = false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (addLeadingBreak) { // Not a new paragraph
|
|
|
|
if (addLeadingBreak) { // Not a new paragraph
|
|
|
|