On Fri, Jul 5, 2019 at 10:44 AM Ryan Joseph <generic...@gmail.com> wrote:

> If use {$multilinestringlineending cr} then the string only prints “
> ddd”. If I use {$multilinestringlineending crlf} then all the text prints.
>

Well, CR, (which is to say, #13) is extremely rarely used by itself
(specifically it is native to only one FPC target, that being "classic"
MacOS.)

Almost all other targets use LF (that is, #10) natively, besides Windows
and a few others which use the *combination* of CR and LF natively.

What platform are you yourself on? Most likely, whatever software you were
using to view the output (either a terminal, or a text editor after doing
something like "./Example > output.txt") is simply not designed to
recognize CR *by itself* as a valid line ending. Which is probably fine, as
you would never use that setting unless targeting classic MacOS, or
actually using classic MacOS.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to