Pauli Borodulin wrote:
> Is there any reason why not replace the call
> 
>       currentParagraph = FactoryProperties.createParagraph(h);
> 
> in the above p tag processing with
> 
>       currentParagraph = FactoryProperties.createParagraph(cprops);

The major difference I see, is that createParagraph(cprops) inherits
properties from previous tags whereas the Paragraph created with 
createParagraph(h) isn't affected by previous styles in cprops.
This being said, I'm not sure if that really matters. I'm inclined to 
follow your suggestion, but I'll have to run some tests first; there's 
also the question from Tim Burt ("Regression for font-size..."), I'd 
like to look into.

> After the change, FactoryProperties.createParagraph(HashMap) could be 
> removed, since p processing is the only user of it (afaik).

That's correct. And the code in both createParagraph method looks almost 
identical.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to