Sign in Join
Wiki copytemporary

End of Line: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: End of Line

OldNewLine
1+`LineEnding` is end of line marker. This [[Constant|constant]] ([[System unit|system unit]]) is used when writing end of lines to text files. In other words, it starts a new line.
2+
3+## End of line markers
4+
5+(Better/also known as line ending characters)
6+
7+- [[Line feed]] (LF, \#10 ): [[Linux]], macOS, BSDs, Unix
8+- [[Carriage return]] + [[Line feed]] (CRLF, \#13#10): Microsoft Windows
9+- [[Carriage return]] (CR, \#13): Mac OS Classic
10+
11+macOS often accepts [[Line feed]] and [[Carriage return]].
12+
13+## See also
14+
15+- [[doc:rtl/system/lineending.html|LineEnding]] Constant describing the current line ending character.
16+- [[doc:rtl/system/settextlineending.html|SetTextLineEnding]] Set the end-of-line character for the given text file.
17+- [[doc:rtl/system/slinebreak.html|sLineBreak]] is an alias for LineEnding and is supplied for compatibility.
18+
19+---
20+*From the Free Pascal wiki, page "End of Line", as it stood on 2020-07-03 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history