DESCRIPTION:
In Crystal Reports v11 we build a report. This report contains a VarChar2 database field. The string from the database is too long to fit in one line of the field, so it breaks somewhere at the end of the “visible” string (the right side of the text field). The part after the line break is shown on the second line in the field. So far, so good (example 1).
Now we have a string which contains a closing and an opening bracket. In this scenario the string will break exactly between the closing and an opening bracket. Even if the brackets are at the beginning of the string. In that case the line space on the first line is hardly used (example 2). This scenario is valid for both round and square brackets and a combination of bracket types.
Example 1
------------------------
Original string without brackets:
“This is a long string. This is a long string. This is a long string. This is a long string. This is a long string. This is a long string. This is a long string. This is a long string.”
Actual and expected appearance in text field:
“This is a long string. This is a long string. This is a long string. This is a long string. This is a long
string. This is a long string. This is a long string. This is a long string.”
------------------------
Example 2
------------------------
Original string with brackets:
“This is a (long)(string). This is a long string. This is a long string. This is a long string. This is a long string. This is a long string. This is a long string. This is a long string.”
Actual appearance in text field:
“This is a (long)
(string). This is a long string. This is a long string. This is a long string. This is a long string. This is a long string. This is a long string. This is a long string.”
Expected appearance in text field:
“This is a (long)(string). This is a long string. This is a long string. This is a long string. This is a
long string. This is a long string. This is a long string. This is a long string.”
------------------------
QUESTION 1:
In the second example, what can we do to make the line break as in the “Expected appearance”?
QUESTION 2:
Are there any more characters for which this scenario (example 2) is valid?