Balaji,
Your formula output looks pretty good. I see that when the text wraps it is not indenting as far as you want. I think that is the issue you are having.
I wrestled with this and ended up coding my formula to break up the text into individual words in an array and then I determine how many words I can put on a line [based on a fixed line width I came up with]. Then, when I had to insert a break, I also inserted the tab character.
Here are some key pieces of my formula:
WrapLength := 100;
NumLFsBetweenBullets := 2;
// split text into array of words
word_array := split(text_field, " ");
WordCount := count(word_array);
For x := 1 To WordCount Do
(
new_text := new_text + word_array[x] + " ";
NewBulletLen := Length(new_bullet_text);
If x < WordCount then
(
If (NewBulletLen + Length(word_array[x+1]) - WrapLen) >= WrapLength then
(
WrapLen := NewBulletLen - Length(word_array[x+1]);
new_text := new_text + ChrW(13) + ChrW(9) + " ";
)
)
);