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!

formatting output...

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Could any1 please go to and kindly check the latest message I left -->

name: David Date: Monday June 03rd, 2002 02:22 AM

Anyone see that? The message body just spreaded horizontally in one-line-style. Is there anyway to prevent it? Or format the output?

Okay, just type something in the textarea, highlight your message,rightclick, copy,paste it for a few times and you might get the same effect.

P/S: Sorry for abusing the forum

Thank you

David Miller


David Miller
 
I see it wrapping fine in all instances but one. If someone leaves a comment that's incredibly long and has no spaces or hyphen, the browser won't wrap it. There are certain characters that cause the browser to wrap long lines of text, and these are two of them (not sure of they're the ONLY two).

What you may want to do is write a little routine to traverse the user's input and insert a space or a hyphen if one is not found within a certain number of characters. This way you'll be ensured of the proper look no matter what the user might type in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top