diff --git a/scripts/preklopeni_dokumentace/html_md.sh b/scripts/preklopeni_dokumentace/html_md.sh index fb91d57c93ad0372cedb762dbe48d11e2ceb212c..cdb10e39e654c62fbe6cde3da96448bc4b294199 100755 --- a/scripts/preklopeni_dokumentace/html_md.sh +++ b/scripts/preklopeni_dokumentace/html_md.sh @@ -29,7 +29,7 @@ if [ "$1" = "-c" ]; then # filtering html files echo "$(tput setaf 12)($counter/$count)$(tput setaf 11)$i"; counter=$((counter+1)) - printf "$(tput setaf 15)\t\tFiltering html files...\n"; + printf "\t\tFiltering html files...\n"; HEAD=$(grep -n -m1 '<h1' "$i" |cut -f1 -d: | tr --delete '\n') END=$(grep -n -m1 '<!-- <div tal:content=' "$i" |cut -f1 -d: | tr --delete '\n') @@ -39,7 +39,7 @@ if [ "$1" = "-c" ]; then sed '1,'"$((HEAD-1))"'d' "$i" | sed -n -e :a -e '1,'"$DOWN"'!{P;N;D;};N;ba' > "${i%.*}TMP.html" # converted .html to .md - printf "\t\t.html => $(tput setaf 13).md\n$(tput setaf 15)" + printf "\t\t.html => .md\n" pandoc -f html -t markdown+pipe_tables-grid_tables "${i%.*}TMP.html" -o "${i%.*}.md"; rm "${i%.*}TMP.html"