diff --git a/Makefile b/Makefile index b91089d..58aea64 100644 --- a/Makefile +++ b/Makefile @@ -25,3 +25,7 @@ render: .PHONY: generate-gh-pages generate-gh-pages: build ./etc/generate-gh-pages + +.PHONY: generate-html-fixtures +generate-html-fixtures: build + ./etc/generate-html-fixtures diff --git a/etc/generate-html-fixtures b/etc/generate-html-fixtures new file mode 100755 index 0000000..af1fbeb --- /dev/null +++ b/etc/generate-html-fixtures @@ -0,0 +1,5 @@ +#!/bin/bash + +for org_file in org/testdata/*.org; do + ./go-org $org_file html > org/testdata/$(basename $org_file .org).html +done diff --git a/main.go b/main.go index 751dadb..22e229b 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func main() { default: log.Fatal("Unsupported output format") } - log.Println(out) + log.Print(out) } func highlightCodeBlock(source, lang string) string {