aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2017-12-21 19:12:40 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2018-01-03 00:17:11 -0500
commit8c24be3239906196b973ff14197650e7702e953c (patch)
treebbf3488a56dd83b525e37fc40547ba4090c71be9 /tasks-reference
parentebuild-maintenance: remove the Gentoo-Bug tag in the package removal subsection (diff)
downloaddevmanual-8c24be3239906196b973ff14197650e7702e953c.tar.gz
devmanual-8c24be3239906196b973ff14197650e7702e953c.tar.bz2
devmanual-8c24be3239906196b973ff14197650e7702e953c.zip
Change the indentation for ebuild <codesample/> snippets from spaces to tabs
Diffstat (limited to 'tasks-reference')
-rw-r--r--tasks-reference/completion/text.xml30
1 files changed, 15 insertions, 15 deletions
diff --git a/tasks-reference/completion/text.xml b/tasks-reference/completion/text.xml
index 5d31211..fd36099 100644
--- a/tasks-reference/completion/text.xml
+++ b/tasks-reference/completion/text.xml
@@ -162,20 +162,20 @@ the following can be used as a template for creating new completion functions:
<codesample lang="ebuild" numbering="lines">
_foo() {
- local cur prev opts
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
- opts=""
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts=""
- if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
- COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
- return 0
- fi
+ if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
- case "${prev}" in
- # ...
- esac
+ case "${prev}" in
+ # ...
+ esac
}
complete -F _foo foo
</codesample>
@@ -272,9 +272,9 @@ complete -F _foo foo
(and -f for short) that takes any kind file, you could do:
<codesample lang="ebuild">
case "${prev}" in
- -f|--file)
- COMPREPLY=( $(compgen -f ? ${cur}) )
- ;;
+ -f|--file)
+ COMPREPLY=( $(compgen -f ? ${cur}) )
+ ;;
esac</codesample>
</ti>
</tr>