The only think I can think of off the top of my head is a "non breaking
space" character, u+00A0.

OTOH, your odd breaking behavior could be a result of having this
character when you weren't expecting it.  I suggest you check your
original string.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: riffla [mailto:[email protected]] 
> Sent: Tuesday, November 16, 2010 5:46 AM
> To: [email protected]
> Subject: [iText-questions] Broken word
> 
> 
> Hi
> 
> Is there a way to prevent ordinary flow to line break a block 
> of characters?
> 
> An example:
> 
> String str = "Your id (social security id), name and address 
> need to be supplied."; Paragraph p = new Paragraph(); 
> p.add(new Chunk(str, myFont)); document.add(p);
> 
> There are scenarios, due to the preceding text being dynamic, 
> where the paragraph will render like:
> ...
> .....................Your id (social security id ), name and 
> address need to be supplied.
> ...
> 
> As you see, the line break occurs just before the closing 
> parentheses - even though there are no white spaces in 
> between. Shouldn't it render like:
> ...
> ..........................Your id (social security id), name 
> and address need to be supplied ...
> 
> 
> Any clues?
> 
> /R
> -- 
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/Broken-word-tp30448
27p3044827.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> --------------------------------------------------------------
> ----------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time 
> creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Many questions posted to this list can (and will) be answered 
> with a reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples: 
> http://itextpdf.com/themes/keywords.php
> 
> 

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to