From fe6f79d651f161633d4192afc65f4a149f758376 Mon Sep 17 00:00:00 2001 From: nat Date: Thu, 22 May 2025 13:14:56 -0700 Subject: [PATCH] include blank lines in output of syntax-hl --- www/src/scripts/syntax-hl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/src/scripts/syntax-hl b/www/src/scripts/syntax-hl index 061056d..4fb0ff4 100755 --- a/www/src/scripts/syntax-hl +++ b/www/src/scripts/syntax-hl @@ -1,7 +1,7 @@ #!/bin/bash tmpfile=$(mktemp) -timeout 0.6s nvim "$1" -c "set nonu | set nornu" -c "autocmd LspAttach * execute 'TOhtml | w! ${tmpfile} | qa!'" >/dev/null || nvim "$1" -c "set nonu | set nornu" -c "TOhtml | w! ${tmpfile} | qa!" >/dev/null +timeout 0.6s nvim "$1" -c "set noswapfile" -c "%s/^$/ /g" -c "set conceallevel=0" -c "set nonu | set nornu" -c "autocmd LspAttach * execute 'TOhtml | w! ${tmpfile} | qa!'" >/dev/null || nvim "$1" -c "set noswapfile" -c "%s/^$/ /" -c "set conceallevel=0" -c "set nonu | set nornu" -c "TOhtml | w! ${tmpfile} | qa!" >/dev/null cat "${tmpfile}" | pup --pre 'style, pre' | sed '/^$/d'