commit c32e5274505effc303bd2e2381625f1c5ba0ec14
parent d8c41e8da11e8d05a7e1c632d9206ef8bbccc677
Author: St John Karp <stjohn@fuzzjunket.com>
Date: Sat, 13 Jul 2019 14:28:30 -0500
Output XHTML instead of reading strict XML
For some reason XML eliminated a bunch of important spacing.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tastic.sh b/tastic.sh
@@ -45,10 +45,11 @@ then
# Parse and create all the HTML files.
find $SITE_PATH/$SOURCE_DIR -type f -name "*.md" -print0 |
while IFS= read -r -d '' file; do
+ echo $file
NEW_PATH=`echo "$file" | sed "s|^$SITE_PATH/$SOURCE_DIR|$SITE_PATH/$OUTPUT_DIR|" | sed 's|.md$|.html|'`
cat "$file" |
swipl --traditional -q -l entries.pl -g "consult('$SITE_PATH/site.pl'), generate_entry." |
- tidy -quiet --indent auto --indent-with-tabs yes --wrap 0 -xml --tidy-mark no |
+ tidy -quiet --indent auto --indent-with-tabs yes --wrap 0 -asxml --tidy-mark no |
~/.local/bin/smartypants \
> "$NEW_PATH"
done