Skip to content

Commit

Permalink
Merge pull request #14078 from stevengj/crlf-doc
Browse files Browse the repository at this point in the history
document newline normalization in literal strings
  • Loading branch information
stevengj committed Nov 21, 2015
2 parents a1040d2 + 9ac2fd5 commit 30dd83b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/manual/strings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ backslash:
julia> print("I have \$100 in my account.\n")
I have $100 in my account.

Triple-Quoted Strings Literals
Triple-Quoted String Literals
------------------------------

When strings are created using triple-quotes (``"""..."""``) they have some
Expand Down Expand Up @@ -482,6 +482,12 @@ defining strings within code that is indented. For example:
In this case the final (empty) line before the closing ``"""`` sets the
indentation level.

Note that line breaks in literal strings, whether single- or triple-quoted,
result in a newline (LF) character ``\n`` in the string, even if your
editor uses a carriage return ``\r`` (CR) or CRLF combination to end lines.
To include a CR in a string, use an explicit escape ``\r``; for example,
you can enter the literal string ``"a CRLF line ending\r\n"``.

Common Operations
-----------------

Expand Down

0 comments on commit 30dd83b

Please sign in to comment.