double spaced dynamic text
I am trying to get a multiline dynamic text box working. When the text is read from the file, it is displayed in the text box as double spaced.
The text file looks like:
txt1=This is line 1
This is line 2
This is line 3.
It displays in the text box as:
This is line 1
This is line 2
This is line 3
----
It displays single spaced if I mash the separate lines into one in the text file and it wraps okay too. But, I wrote the text as separate lines in the file so I could control where the linebreaks occur. Even if I did not want to control the wrapping, a text file with one very long line of text is cumbersome to work with
Any ideas? Thanks.
problem solved - single spacing again.
Quote:
Originally posted by OwenAus
Just a thought here.
Somewhere on the Macromedia site there is some information on this. I cannot find it now, so no link. But from recollection MM recommend no linefeeds in dynamic text, as some OS (windows, for example) creates CR/LF whereas others create just a LF.
So whatever you used to create the text may have created hex 0x0A and 0x0D when ENTER was pressed, causing double spacing.
You are right. I created the file in windows notepad and it did have <cr><lf> on the lines, thus accounting for the double spaces. I imported a text file from a unix server that only has <lf> on the end, and the double spacing went away. Thanks for your help!