Skip to content

Commit

Permalink
document newline normalization in literal strings (JuliaLang#14073)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Nov 20, 2015
1 parent e6cd2bc commit 3da207e
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 3da207e

Please sign in to comment.