I am assuming you mean this:-
<br> is not a valid newline tag, using <p> will create an extra margin space
that you do not expect. To avoid extra margins you should add a stlylesheet
entry to your HTMLDocument in Java:
htmldoc.getStyleSheet().addRule("p {margin-top: 0;}");
This will give you the pseudo newline behavior that you are expecting.
kkdusi wrote:
>
> for parsing the text with html tags , can we reduce the font face and size
> of a newline mapped to a br tag in tagmap. Reason: break tag between 2 p
> tags produces more space than required.
>
--
View this message in context:
http://www.nabble.com/Font-of-NEWLINE-mapped-to-%3Cbr-%3E-tag-in-tagmap-tf3408904.html#a9501131
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/