Reformatting: Lay out _list() file numbering in multi-line.

...like the following complex formatting and filtering steps.
This commit is contained in:
Ingo Karkat
2011-12-23 22:46:10 +01:00
parent f8a6e5f8d6
commit 17658c852d

View File

@@ -775,7 +775,11 @@ _list() {
fi
items=$(
sed = "$src" \
| sed "N; s/^/ /; s/ *\(.\{$PADDING,\}\)\n/\1 /" \
| sed '''
N
s/^/ /
s/ *\([ 0-9]\{'"$PADDING"',\}\)\n/\1 /
''' \
| grep -v "^[ 0-9]\+ *$"
)
if [ "${filter_command}" ]; then