Agent & XML text (forces line break)

I created an agent that generates a temp. XML used in PDF production (servlet + XSL). The PDF is generated but am noticing some premature wraps. I checked the XML doc and found the issue. My agent is creating the contents <e.g planning field> on one line. It reaches the end and starts a new line. When it does this, it forces a new line in the PDF.

example:

This is a test… 123… this is a test of the

planning field.

It should be…

This is a test… 123… this is a test of the planning field.

Here is a piece of the code that generates the planning field:

rtitem.AppendText(" <richtext name='planning'>")

Call rtitem.AddNewLine( 1 )

rtitem.AppendText(htmlitem2.GetFormattedText(True,2048))

Call rtitem.AddNewLine( 1 )  

rtitem.AppendText(" </richtext>")

Is it the 2048 value? Based on Designer help, it sounds like the # forces a wrap at 2048 characters. Should this be 0?

Subject: Agent & XML text (forces line break)

From Designer Help:

Use GetUnformattedText if you don’t want to wrap or strip tabs

Give that a try - I think it should work

Subject: RE: Agent & XML text (forces line break)

Great suggestion… will give it a try. Thanks…