File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -441,8 +441,8 @@ backslash:
441
441
julia> print("I have \$ 100 in my account.\n ")
442
442
I have $100 in my account.
443
443
444
- Triple-Quoted Strings Literals
445
- ------------------------------
444
+ Triple-Quoted String Literals
445
+ -----------------------------
446
446
447
447
When strings are created using triple-quotes (``"""...""" ``) they have some
448
448
special behavior that can be useful for creating longer blocks of text. First,
@@ -484,6 +484,12 @@ defining strings within code that is indented. For example:
484
484
In this case the final (empty) line before the closing ``""" `` sets the
485
485
indentation level.
486
486
487
+ Note that line breaks in literal strings, whether single- or triple-quoted,
488
+ result in a newline (LF) character ``\n `` in the string, even if your
489
+ editor uses a carriage return ``\r `` (CR) or CRLF combination to end lines.
490
+ To include a CR in a string, use an explicit escape ``\r ``; for example,
491
+ you can enter the literal string ``"a CRLF line ending\r\n" ``.
492
+
487
493
Common Operations
488
494
-----------------
489
495
You can’t perform that action at this time.
0 commit comments