Break after Dash: FormattedTextArea

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for Java (v8)  /  Break after Dash: FormattedTextArea

DynamicPDF Generator for Java (v8) Forum

 May 06 2016 4:36 PM
Using FormattedTextArea, two words separated only by a dash (U+002D), occurring at end of line, result in a line break before the first word instead of between the dash and the second word, even if the first word plus the dash would fit on the first line.

Using TextArea, the break occurs as expected, between the dash and the second word.

This can be seen in the DynamicPDF examples. For FormattedTextArea, edit text/FormattedText.txt. On the second line, change "your websites" to "your-websites"; then run FormattedTextContinuation.java. For TextArea, run TimeMachine.java and look on page 3 for "Four-Dimensional".

Is there a way to use FormattedTextArea so that dashes automatically break at end of line? I've tried various Unicode dashes to no avail. I can force a break by inserting a space, but I'd prefer not to have to programmatically determine which dashes will cause undesirable line breaks.


thanks
Jay Dunning
Posted by a ceTe Software moderator
Hello Jay,

We are able to recreate the issue based on the description you have provided. We have forward this information to our development team further analysis. We will post an update once we receive an update from our development team.

Thanks,
ceTe Software Support Team.
Posted by a ceTe Software moderator
Hello Jay,

This issue has been fixed and a new build of the product is released that includes the fix. Here is the link to download the fixed jars.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 11:00 AM.