about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-05-30 15:59:52 -0500
committerCase Duckworth2020-05-30 15:59:52 -0500
commitd2377ae0160f0768b7b4480c926a2b3dc8b9f870 (patch)
tree6c5d67a5dac309dd87b9883daf0d9f8a10bc75f2
parentChange some functions to only Bash (diff)
downloadbollux-d2377ae0160f0768b7b4480c926a2b3dc8b9f870.tar.gz
bollux-d2377ae0160f0768b7b4480c926a2b3dc8b9f870.zip
Archive
-rw-r--r--typeset_gemini.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/typeset_gemini.sh b/typeset_gemini.sh index e8aed41..2f9abbc 100644 --- a/typeset_gemini.sh +++ b/typeset_gemini.sh
@@ -1,5 +1,6 @@
1typeset_gemini() { 1typeset_gemini() {
2 local pre=false 2 local pre=false
3 local ln=0
3 4
4 while read -r line; do 5 while read -r line; do
5 case "$line" in 6 case "$line" in
@@ -7,7 +8,10 @@ typeset_gemini() {
7 flip pre 8 flip pre
8 continue 9 continue
9 ;; 10 ;;
10 =\>*) gemini_link "$line" $pre ;; 11 =\>*)
12 : $((ln += 1))
13 gemini_link "$line" $pre
14 ;;
11 \#*) gemini_header "$line" $pre ;; 15 \#*) gemini_header "$line" $pre ;;
12 \**) gemini_list "$line" $pre ;; 16 \**) gemini_list "$line" $pre ;;
13 *) gemini_text "$line" $pre ;; 17 *) gemini_text "$line" $pre ;;