You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing_to_docs/doc_guidelines.adoc
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1419,14 +1419,17 @@ The following example shows a more complex use of user-chosen elements and presc
1419
1419
1420
1420
[[backslash-for-long-code-line]]
1421
1421
==== 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:
1423
1423
1424
+
....
1425
+
[source,terminal]
1424
1426
----
1425
1427
$ 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 }'
0 commit comments