diminuer l'indentation pour les fonctions e*
This commit is contained in:
parent
d4ac5f7b10
commit
3ee6cb4d7c
|
@ -220,8 +220,8 @@ def eecho(msg, flush=None): eprint(msg, V_INFO, True, flush, ERR)
|
||||||
def eecho_(msg, flush=None): eprint(msg, V_INFO, False, flush, ERR)
|
def eecho_(msg, flush=None): eprint(msg, V_INFO, False, flush, ERR)
|
||||||
def edebug(msg, flush=None): eprint((('D ', 'w,@'), msg), V_DEBUG, True, flush, ERR)
|
def edebug(msg, flush=None): eprint((('D ', 'w,@'), msg), V_DEBUG, True, flush, ERR)
|
||||||
|
|
||||||
def get_ntlevel(): return len(get_tlevel()) / 4
|
def get_ntlevel(): return len(get_tlevel()) / 2
|
||||||
def set_ntlevel(l): set_tlevel(l * ' ')
|
def set_ntlevel(l): set_tlevel(l * ' ')
|
||||||
def inc_ntlevel():
|
def inc_ntlevel():
|
||||||
if get_estack() != '': set_ntlevel(get_ntlevel() + 1)
|
if get_estack() != '': set_ntlevel(get_ntlevel() + 1)
|
||||||
def dec_ntlevel():
|
def dec_ntlevel():
|
||||||
|
|
|
@ -3167,7 +3167,7 @@ function __t_etitle() {
|
||||||
local __t_title="$1"; shift
|
local __t_title="$1"; shift
|
||||||
local __t_s=0
|
local __t_s=0
|
||||||
# etitle
|
# etitle
|
||||||
[ -n "$__estack" ] && __tlevel="${__tlevel} "
|
[ -n "$__estack" ] && __tlevel="${__tlevel} "
|
||||||
__estack="$__estack:t"
|
__estack="$__estack:t"
|
||||||
if show_info; then
|
if show_info; then
|
||||||
if [ -n "$__t_deferred" ]; then
|
if [ -n "$__t_deferred" ]; then
|
||||||
|
@ -3351,7 +3351,7 @@ function eend() {
|
||||||
elif [ "${__estack%:t}" != "$__estack" ]; then
|
elif [ "${__estack%:t}" != "$__estack" ]; then
|
||||||
# terminer etitle -s
|
# terminer etitle -s
|
||||||
__estack="${__estack%:t}"
|
__estack="${__estack%:t}"
|
||||||
__tlevel="${__tlevel% }"
|
__tlevel="${__tlevel% }"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
function __elinedots() {
|
function __elinedots() {
|
||||||
|
|
Loading…
Reference in New Issue