Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra newline when loading from textfiles

Status
Not open for further replies.

Gasbag

Technical User
Jul 24, 2000
24
NL
Hi everybody,
I have this movie that loads multiple lines from my.txt
It look like this:

&maintxt=<B>head<B>
hi it's text


but when i load it up, i get 2 newlines (<CR>) between each line...
Why? The multiline option doesn't make a difference...

greetz, Luc Bloom
-> Elementz
 
I don't think you can do what you are trying to (although I am more than happy to be corrected if I am wrong =) ).

If you want the text to appear on multiple lines of a text box you may well have to just make the text box smaller so that it scrolls down automatically (and put the text all on one line in the text file; the problem is that the text file is in a standard html encoded format, used for passing variables around web page headers; when you are doing this, of course, you don't have any need for carridge returns in the middle of a string.

If you desperatley need them split then I believe that you will have to put them as seperate variables.

e.g.:
&maintxt=<B>head<B>&maintxt2=hi it's text&

As I say, I believe that all this is correct, but hopefully someone will post if it is not!

=)

PetitPal.
 
you've obviously set the textfield to accept HTML. So you can just use the following:

Code:
&maintxt=<b>head<B><BR>hi it's text
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Yes, that is true, ferhelping, but the reason why i've put it in a txt file in the first place, is so i can edit it easily... if i have to put it all in one line again, then the positive effect is gone.
 
'ferhelping' ? Are you trying to be funny!

ciao
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top