Harakiri wrote: > [...] > i showed you how you can by default add a new line - this is exactly > what browsers do
If I read it correctly, the example showed how to add a new line in the beginning of every paragraph. Based on my knowledge on web browsers, the margin/spacing should be after each paragraph, not before. Anyway, the behaviour of web browsers completely depend on the styles used. Because of this, the space of a single line after each paragraph may or may not be the way how browsers do it. The default behaviour of HTMLWorker should, of course, match the default behaviour of web browsers. Don't take me wrong. I did not mean to be unpolite. I was simply asking whether anyone on the list had an opinion (either against or for) whether the current handling of p elements could be changed the way I proposed. I just wanted to ask opinions before submitting a patch for it. I'm sorry, if my first message was misleading. The example you showed can better be implemented by using HTMLWorker.parseToList and then iterating through the list. An extra new line should then be added in the end of each occurence of type Paragraph (or so). This way it is not even necessary to make any changes to iText. And by using setSpacingAfter of Paragraphs instead of adding new lines, it's even possible to control the amount of margin/spacing. > [...] -- Regards, Pauli Borodulin <[email protected]> Systems Specialist, tel. +358 3 3551 7892 Computer Centre / Room B4179A University of Tampere, Finland ------------------------------------------------------------------------------ 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
