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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom web part line feed

Status
Not open for further replies.

dinger2121

Programmer
Sep 11, 2007
439
0
0
US
Hello,
I am trying to create a custom web part that will parse a text file and add all of the lines. I cannot get a line feed in the file. It is inserting all of the lines right after each other without carriage returns.
I have tried \r\n, write.writeline,etc.
Does anyone know how I can do this?

Thanks
 
Seems to me that wrap each individual item from the text file in <P> and </P> tags before they are rendered in the web part.

Is this not appropriate in your case?
 
Thanks for the input. I actually used the <BR> tag, which worked perfectly.
The <P> tags were giving me an extra line feed, appearing as double spaces.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top