slide deck presentation tool written in pure bash

fix spacing glitch on newline encounters

Akshay c78c23a2 9da2d560

Changed files
+6 -1
+6 -1
shlide
··· 51 51 printf '\e[%s;%sH' "$l" "$c" 52 52 53 53 while IFS= read -r line; do 54 + reduce=0 54 55 # Print the contents of the slide file, 55 56 # line by line. 56 57 printf "%s" "$line" 58 + case $line in 59 + "" | *"\n"*) 60 + ((++reduce));; 61 + esac 57 62 # Move down and back after each print. 58 - printf '\e[%sD\e[B' "${#line}" 63 + printf '\e[%sD\e[B' "$((${#line} - $reduce))" 59 64 done <<< "$slide_contents" 60 65 61 66 }