Skip to content

Commit

Permalink
Drop the null byte from the end of generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Dec 16, 2023
1 parent 1fadaf1 commit 933907a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
out/
base16-vim/
base16-schemes/
schemes/
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for COLORSCHEME in ${COLORSCHEMES[@]}; do
| sed "3,14!d;s/body/pre/;s/^/#base16-$COLORSCHEME /" \
> out/$COLORSCHEME.css

grep -Pzo "(?s)<pre id='vimCodeElement'>.*</pre>" $0.html \
awk "/<pre id='vimCodeElement'>/,/<\/pre>/" $0.html \
> out/$COLORSCHEME.html

rm -f $0.html
Expand Down

0 comments on commit 933907a

Please sign in to comment.