about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-06-08 00:36:42 -0500
committerCase Duckworth2020-06-08 00:36:42 -0500
commit9612417f6e76985be0d86bfa62e95922a8cdb67c (patch)
treeb4d85690f26cab8d060a60804932077612e6c732
parentAdd quote support to text/gemini typesetting (diff)
downloadbollux-9612417f6e76985be0d86bfa62e95922a8cdb67c.tar.gz
bollux-9612417f6e76985be0d86bfa62e95922a8cdb67c.zip
Change formatting of quotes and fix list
-rwxr-xr-xbollux7
1 files 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() {
134 : "${C_HEADER2:=1}" # header 2 formatting 134 : "${C_HEADER2:=1}" # header 2 formatting
135 : "${C_HEADER3:=3}" # header 3 formatting 135 : "${C_HEADER3:=3}" # header 3 formatting
136 : "${C_LIST:=0}" # list formatting 136 : "${C_LIST:=0}" # list formatting
137 : "${C_QUOTE:=3}" # quote formatting
137 : "${C_PRE:=0}" # preformatted text formatting 138 : "${C_PRE:=0}" # preformatted text formatting
138} 139}
139 140
@@ -771,7 +772,7 @@ gemini_list() {
771 s="${BASH_REMATCH[1]}" 772 s="${BASH_REMATCH[1]}"
772 t="${BASH_REMATCH[2]}" 773 t="${BASH_REMATCH[2]}"
773 774
774 printf "\e[${C_SIGIL}m%${S_MARGIN}s " "$s" 775 printf "\e[${C_SIGIL}m%${S_MARGIN}s ${C_RESET}" "$s"
775 printf -v l "\e[${C_LIST}m%s${C_RESET}\n" "$t" 776 printf -v l "\e[${C_LIST}m%s${C_RESET}\n" "$t"
776 fold_line "$WIDTH" "$l" 777 fold_line "$WIDTH" "$l"
777 else 778 else
@@ -786,8 +787,8 @@ gemini_quote() {
786 s="${BASH_REMATCH[1]}" 787 s="${BASH_REMATCH[1]}"
787 t="${BASH_REMATCH[2]}" 788 t="${BASH_REMATCH[2]}"
788 789
789 printf "\e[${C_SIGIL}m%${S_MARGIN}s " "$s" 790 printf "\e[${C_SIGIL}m%${S_MARGIN}s ${C_RESET}" "$s"
790 printf -v l "\e[${C_LIST}m%s${C_RESET}\n" "$t" 791 printf -v l "\e[${C_QUOTE}m%s${C_RESET}\n" "$t"
791 fold_line "$WIDTH" "$l" 792 fold_line "$WIDTH" "$l"
792 else 793 else
793 gemini_pre "$1" 794 gemini_pre "$1"