From 9612417f6e76985be0d86bfa62e95922a8cdb67c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 8 Jun 2020 00:36:42 -0500 Subject: Change formatting of quotes and fix list --- bollux | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bollux b/bollux index 55ae15b..4261d36 100755 --- a/bollux +++ b/bollux @@ -134,6 +134,7 @@ bollux_config() { : "${C_HEADER2:=1}" # header 2 formatting : "${C_HEADER3:=3}" # header 3 formatting : "${C_LIST:=0}" # list formatting + : "${C_QUOTE:=3}" # quote formatting : "${C_PRE:=0}" # preformatted text formatting } @@ -771,7 +772,7 @@ gemini_list() { s="${BASH_REMATCH[1]}" t="${BASH_REMATCH[2]}" - printf "\e[${C_SIGIL}m%${S_MARGIN}s " "$s" + printf "\e[${C_SIGIL}m%${S_MARGIN}s ${C_RESET}" "$s" printf -v l "\e[${C_LIST}m%s${C_RESET}\n" "$t" fold_line "$WIDTH" "$l" else @@ -786,8 +787,8 @@ gemini_quote() { s="${BASH_REMATCH[1]}" t="${BASH_REMATCH[2]}" - printf "\e[${C_SIGIL}m%${S_MARGIN}s " "$s" - printf -v l "\e[${C_LIST}m%s${C_RESET}\n" "$t" + printf "\e[${C_SIGIL}m%${S_MARGIN}s ${C_RESET}" "$s" + printf -v l "\e[${C_QUOTE}m%s${C_RESET}\n" "$t" fold_line "$WIDTH" "$l" else gemini_pre "$1" -- cgit 1.4.1-21-gabe81