Skip to content

Commit 386ee4f

Browse files
committed
doc(styleguide): fix asciidoc format
1 parent 39baf0f commit 386ee4f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/styleguide.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ need that kind of processing (e.g. file and command names). The
6161
_filedir and _filedir_xspec helpers do this automatically whenever
6262
they return some completions.
6363

64-
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
65-
------------------------------------------------
64+
`[[ ${COMPREPLY-} == *= ]] && compopt -o nospace`
65+
-------------------------------------------------
6666

6767
The above is functionally a shorthand for:
68-
----
69-
if [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]]; then
70-
compopt -o nospace
71-
fi
72-
----
68+
69+
if [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]]; then
70+
compopt -o nospace
71+
fi
72+
7373
It is used to ensure that long options' name won't get a space
7474
appended after the equal sign. Calling compopt -o nospace makes sense
7575
in case completion actually occurs: when only one completion is
7676
available in COMPREPLY.
7777

78-
$split && return
79-
----------------
78+
`$split && return`
79+
------------------
8080

8181
Should be used in completions using the -s flag of _init_completion,
8282
or other similar cases where _split_longopt has been invoked, after

0 commit comments

Comments
 (0)