diff --git a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java b/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java index 9bce7242f..74628ff53 100644 --- a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java +++ b/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java @@ -244,8 +244,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener { } if (tag.equals(HtmlTags.NEWLINE)) { if (currentParagraph == null) { - currentParagraph = FactoryProperties - .createParagraph(cprops); + currentParagraph = new Paragraph(); } currentParagraph.add(factoryProperties .createChunk("\n", cprops)); @@ -258,8 +257,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener { // end with a break, but a trailing break is always inserted. boolean addLeadingBreak = true; if (currentParagraph == null) { - currentParagraph = FactoryProperties - .createParagraph(cprops); + currentParagraph = new Paragraph(); addLeadingBreak = false; } if (addLeadingBreak) { // Not a new paragraph diff --git a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/xml/simpleparser/SimpleXMLParser.java b/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/xml/simpleparser/SimpleXMLParser.java index 3e765d52e..ea05a882d 100644 --- a/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/xml/simpleparser/SimpleXMLParser.java +++ b/fine-itext/src/main/java/com/fr/third/v2/lowagie/text/xml/simpleparser/SimpleXMLParser.java @@ -494,7 +494,7 @@ public final class SimpleXMLParser { if (c == -1) { return; } - if (c == '/' || HTMLWorker.tagsPrefixSupported.containsKey(c)) { + if (c == '/' || HTMLWorker.tagsPrefixSupported.containsKey(Character.toLowerCase(c))) { if (type == TEXT) { flush(); }