about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xbollux10
1 files changed, 5 insertions, 5 deletions
diff --git a/bollux b/bollux index 96a372f..76f4def 100755 --- a/bollux +++ b/bollux
@@ -728,7 +728,7 @@ typeset_gemini() {
728 728
729gemini_link() { 729gemini_link() {
730 local re="^(=>)[[:blank:]]*([^[:blank:]]+)[[:blank:]]*(.*)" 730 local re="^(=>)[[:blank:]]*([^[:blank:]]+)[[:blank:]]*(.*)"
731 local s t a l # sigil, text, annotation(url), line 731 local s t a # sigil, text, annotation(url)
732 local ln="$3" 732 local ln="$3"
733 if ! ${2-false} && [[ "$1" =~ $re ]]; then 733 if ! ${2-false} && [[ "$1" =~ $re ]]; then
734 s="${BASH_REMATCH[1]}" 734 s="${BASH_REMATCH[1]}"
@@ -745,7 +745,7 @@ gemini_link() {
745 -l "$((${#ln} + 3))" -m "${T_MARGIN}" \ 745 -l "$((${#ln} + 3))" -m "${T_MARGIN}" \
746 "$WIDTH" "$(trim_string "$t")" 746 "$WIDTH" "$(trim_string "$t")"
747 fold_line -B " \e[${C_LINK_URL}m" -A "${C_RESET}" \ 747 fold_line -B " \e[${C_LINK_URL}m" -A "${C_RESET}" \
748 -l "$((${#ln} + 3 + ${#t}))" -m "${T_MARGIN}" \ 748 -l "$((${#ln} + 3 + ${#t}))" -m "$((T_MARGIN + ${#ln} + 2))" \
749 "$WIDTH" "$a" 749 "$WIDTH" "$a"
750 else 750 else
751 gemini_pre "$1" 751 gemini_pre "$1"
@@ -754,7 +754,7 @@ gemini_link() {
754 754
755gemini_header() { 755gemini_header() {
756 local re="^(#+)[[:blank:]]*(.*)" 756 local re="^(#+)[[:blank:]]*(.*)"
757 local s t a l # sigil, text, annotation(lvl), line 757 local s t a # sigil, text, annotation(lvl)
758 if ! ${2-false} && [[ "$1" =~ $re ]]; then 758 if ! ${2-false} && [[ "$1" =~ $re ]]; then
759 s="${BASH_REMATCH[1]}" 759 s="${BASH_REMATCH[1]}"
760 a="${#BASH_REMATCH[1]}" 760 a="${#BASH_REMATCH[1]}"
@@ -772,7 +772,7 @@ gemini_header() {
772 772
773gemini_list() { 773gemini_list() {
774 local re="^(\*)[[:blank:]]*(.*)" 774 local re="^(\*)[[:blank:]]*(.*)"
775 local s t a l # sigil, text, annotation(n/a), line 775 local s t # sigil, text
776 if ! ${2-false} && [[ "$1" =~ $re ]]; then 776 if ! ${2-false} && [[ "$1" =~ $re ]]; then
777 s="${BASH_REMATCH[1]}" 777 s="${BASH_REMATCH[1]}"
778 t="${BASH_REMATCH[2]}" 778 t="${BASH_REMATCH[2]}"
@@ -787,7 +787,7 @@ gemini_list() {
787 787
788gemini_quote() { 788gemini_quote() {
789 local re="^(>)[[:blank:]]*(.*)" 789 local re="^(>)[[:blank:]]*(.*)"
790 local s t a l 790 local s t # sigil, text
791 if ! ${2-false} && [[ "$1" =~ $re ]]; then 791 if ! ${2-false} && [[ "$1" =~ $re ]]; then
792 s="${BASH_REMATCH[1]}" 792 s="${BASH_REMATCH[1]}"
793 t="${BASH_REMATCH[2]}" 793 t="${BASH_REMATCH[2]}"