The ')' is not a default split character, something else must be going on. 
Please provide a small standalone program so that the problem can be reproduced.

Paulo 

-----Original Message-----
From: Mark Storer [mailto:[email protected]] 
Sent: Tuesday, November 16, 2010 5:02 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Broken word

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


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
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