From d6f4b6d414402ee275b03921b5ffcf793a5734d9 Mon Sep 17 00:00:00 2001 From: Atlas Cove <5618106+Atlas48@users.noreply.github.com> Date: Mon, 6 Feb 2023 01:56:56 +0000 Subject: [PATCH] small changes --- .editorconfig | 3 ++- src/_tape/render.sh | 12 ++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.editorconfig b/.editorconfig index 7418fa3..a61759e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,6 @@ root=true [*] +charset=utf-8 end_of_line=lf trim_trailing_whitespace=true -insert_final_newline=true \ No newline at end of file +insert_final_newline=true diff --git a/src/_tape/render.sh b/src/_tape/render.sh index 885b833..623f298 100755 --- a/src/_tape/render.sh +++ b/src/_tape/render.sh @@ -11,7 +11,7 @@ function tape { *.org) org-ruby --translate html $1 ;; *.md) comrak --gfm $1 ;; *.html) cat $1 ;; - *) pandoc --cols 168 -t html $i || echo "Skipping $i, unknown format" ;; + *) pandoc --columns 168 -t html $i || echo "Skipping $i, unknown format" ;; esac } function yn { @@ -28,7 +28,7 @@ function yn { } cd .. -files=(`find -not -path './_*'`) +files=(`find -not -path './_*' -not -path './css'`) for i in ${files[@]}; do echo $i if test -d $i; then @@ -37,16 +37,8 @@ for i in ${files[@]}; do else continue fi elif test -f $i; then - if ! grep -q '.s[ac]ss' "$i"; then - sass=+($i) - continue - fi tape $i | sed 's/^\s\{1,4\}//' | m4 -DTITLE="$(${prog[title]} $i)" -DLIB=${prog[lib]} ${prog[m4]} > ../${i%.*}.html else echo "Skipping $i, unknown file type" fi done - -if ! ( test -z ${css[@]} ) && yn "Run rcss.sh?"; then - _tape/rcss.sh ${css[@]} -fi