Newline and lineFreak

  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post July 1st, 2004, 2:47 am

Okay so the way to add a new line is \n. the ascii code is chr(13)

How to i add a linefeed? have tried \n. have tried chr(13) and I have tried chr(10) and they all generate a funny little block in Notepad.
Watch me grow
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 1st, 2004, 2:47 am

  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post July 1st, 2004, 2:59 am

Okay found the solution.

Here it is for all you guys (just though along the terms of VBCrLf and found) this)

Code: [ Select ]
Macintosh: \r
Unix  : \n
Windows : \r\n
  1. Macintosh: \r
  2. Unix  : \n
  3. Windows : \r\n


on http://za.php.net/nl2br .
Watch me grow
  • Nem
  • Guru
  • Guru
  • No Avatar
  • Joined: Feb 13, 2004
  • Posts: 1243
  • Loc: UK
  • Status: Offline

Post July 1st, 2004, 3:45 am

rapid, you do some coding out of this world dude.

Quote:
Macintosh: \r
Unix : \n
Windows : \r\n



do i need to say more?
GSDomains.com -Click here - Packages starting from £3.69 a month. 1.5GB Space & 10GB Bandwidth.
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post July 1st, 2004, 4:08 am

huh?
Watch me grow
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post July 1st, 2004, 8:18 pm

I recently came across something similar while pulling my hair out working with javascript and line endings in textareas. It turns out that the browsers - IE particulary- add another layer of differences in how they handle newlines in textareas on different platforms.

Anyway I found this to be useful:

Line endings in Javascript - SitePoint DHTML & CSS Blog
Free Programming Resources

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 109 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.