<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>newline -- the new line character sequence</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___New__Method.html">next</a> | <a href="___New__From__Method.html">previous</a> | <a href="___New__Method.html">forward</a> | <a href="___New__From__Method.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>newline -- the new line character sequence</h1> <div class="single"><h2>Description</h2> <div><tt>newline</tt> -- a string containing the character or sequence of characters that represents the end of a line. To end an output line, you should use <a href="_endl.html" title="end an output line">endl</a> instead, because there is more to ending an output line than emitting the characters in <tt>newline</tt>, especially when nets are being used.<p/> This string depends on what your operating system is: on Unix systems it is the ascii character 10; on Macintoshes it is the ascii character 13, and under MS-DOS and Windows 95 it is a string of length 2 containing ascii characters 13 and 10.<p/> Try to avoid confusing the newline string described here with the ASCII character called <tt>newline</tt>. That character can be incorporated into a string with the escape sequence <tt>\n</tt>, and it always has ASCII code 10.<table class="examples"><tr><td><pre>i1 : ascii "\n" o1 = {10} o1 : List</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="___Net.html" title="the class of all nets and strings">Net</a> -- the class of all nets and strings</span></li> </ul> </div> <div class="waystouse"><h2>For the programmer</h2> <p>The object <a href="_newline.html" title="the new line character sequence">newline</a> is <span>a <a href="___String.html">string</a></span>.</p> </div> </div> </body> </html>