TWiki> FipDoc Web>FIP-RAQs > FiponNT>NewLine (02 Feb 2005, DotFingerPost? )EditAttach
A newline is a Unix end of line character and is represented by an octal 12. In fip tables it can be represented as a \n or a \012.


In dataformatting it is often represented as a NL - at the top of the dataformat file you can then set:

set NL \012

and when you output data you can use the NL variable. This is useful if you are working on a system where an end of line is some other character sequence (say a carriage return newline), but you want to use a Newline to make things clearer whilst you are editing.

work with the "set NL \012" for clarity on Unix, and then once ready to send it on to your system that requires "\</P\>\</////>\\012\015" or somesuch clutter, just change your "set" command to reflect this.


Useful NL sequences are:

  • unix - \n (newline only)
  • macintosh - \r\n (carriage return/new line)
  • pc - \r (carriage return only)
Topic revision: r1 - 02 Feb 2005 - 13:24:27 - DotFingerPost?
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback