commit 0ec1e37cfe75ef56198acd9b566fa08b77abe597
parent 4523016fe96af6c2ee533c5d5d8d796227559f2f
Author: hhvn <hayden@haydenvh.com>
Date: Sat, 27 Feb 2021 01:27:07 +0000
bin/interface.sh: add padding to top of posts/replies
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/interface.sh b/bin/interface.sh
@@ -209,8 +209,8 @@ menu_read(){
file=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $6 " " $7}' < $datadir/boards/$board/list)
from=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $4}' < $datadir/boards/$board/list)
fromf=$([ "$(userget $from realname)" != "$from" ] && echo "From: $(userget $from realname) <$from>" || echo "From: $from")
- printf '%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /'
- printf '%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /' | pager2
+ printf '\n\n%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /'
+ # printf '\n\n%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /' | pager2
total_in_thread=$(awk -v "file=$(echo "$file" | sed 's/ .*//')" -F" " '$6 == file' < $datadir/boards/$board/list | wc -l)
while prompt "($(($id2+1))/$total_in_thread) Ne${k}$([ $(($id2+1)) -eq $total_in_thread ] && printf "${e}")x${s}t ${k}$([ $id2 -eq 0 ] && printf "${e}")p${s}revious rep${k}$(check_reply_perm $board $user noprint)l${s}y ${k}b${s}oards b${k}a${s}ck ${k}h${s}elp" input
do