Skip to content

Commit 3413e88

Browse files
authored
Merge pull request #77881 from jeana-redhat/guidelines-indent-multiline-cli
add indent statement to multiline cli guidance
2 parents 27ba5f5 + ec742cb commit 3413e88

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

contributing_to_docs/doc_guidelines.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,14 +1419,17 @@ The following example shows a more complex use of user-chosen elements and presc
14191419

14201420
[[backslash-for-long-code-line]]
14211421
==== Backslash for long lines of code
1422-
For long lines of code that you want to break up among multiple lines, use a backslash to show the line break. For example:
1422+
For long lines of code that you want to break up among multiple lines, use a backslash to show the line break and indent all lines under the first with two spaces. For example:
14231423

1424+
....
1425+
[source,terminal]
14241426
----
14251427
$ oc get endpoints --all-namespaces --template \
1426-
'{{ range .items }}{{ .metadata.namespace }}:{{ .metadata.name }} \
1427-
{{ range .subsets }}{{ range .addresses }}{{ .ip }} \
1428-
{{ end }}{{ end }}{{ "\n" }}{{ end }}' | awk '/ 172\.30\./ { print $1 }'
1428+
'{{ range .items }}{{ .metadata.namespace }}:{{ .metadata.name }} \
1429+
{{ range .subsets }}{{ range .addresses }}{{ .ip }} \
1430+
{{ end }}{{ end }}{{ "\n" }}{{ end }}' | awk '/ 172\.30\./ { print $1 }'
14291431
----
1432+
....
14301433

14311434
[[callouts-in-codeblocks]]
14321435
==== Callouts in code blocks

0 commit comments

Comments
 (0)