mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
docs: fix string literal example formatting
This commit is contained in:
parent
9e8afc68e5
commit
17318bc70d
1 changed files with 6 additions and 5 deletions
|
@ -36,7 +36,7 @@ The following must be escaped to represent them within a string, by prefixing wi
|
||||||
> "\""
|
> "\""
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> "\""
|
> "\""
|
||||||
|
|
||||||
- Backslash (`\`)
|
- Backslash (`\`)
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ The following must be escaped to represent them within a string, by prefixing wi
|
||||||
> "\\"
|
> "\\"
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> "\\"
|
> "\\"
|
||||||
|
|
||||||
- Dollar sign followed by an opening curly bracket (`${`) – "dollar-curly"
|
- Dollar sign followed by an opening curly bracket (`${`) – "dollar-curly"
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ The following must be escaped to represent them within a string, by prefixing wi
|
||||||
> "\${"
|
> "\${"
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> "\${"
|
> "\${"
|
||||||
|
|
||||||
The newline, carriage return, and tab characters can be written as `\n`, `\r` and `\t`, respectively.
|
The newline, carriage return, and tab characters can be written as `\n`, `\r` and `\t`, respectively.
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ A "double-dollar-curly" (`$${`) can be written literally.
|
||||||
> "$${"
|
> "$${"
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> "$\${"
|
> "$\${"
|
||||||
|
|
||||||
String values are output on the terminal with Nix-specific escaping.
|
String values are output on the terminal with Nix-specific escaping.
|
||||||
Strings written to files will contain the characters encoded by the escaping.
|
Strings written to files will contain the characters encoded by the escaping.
|
||||||
|
@ -107,10 +107,11 @@ each line, so the resulting string is
|
||||||
> >
|
> >
|
||||||
> > The following indented string is prefixed with tabs:
|
> > The following indented string is prefixed with tabs:
|
||||||
> >
|
> >
|
||||||
> > ''
|
> > <pre><code class="nohighlight">''
|
||||||
> > all:
|
> > all:
|
||||||
> > @echo hello
|
> > @echo hello
|
||||||
> > ''
|
> > ''
|
||||||
|
> > </code></pre>
|
||||||
> >
|
> >
|
||||||
> > "\tall:\n\t\t@echo hello\n"
|
> > "\tall:\n\t\t@echo hello\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue