summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2009-06-10 01:00:40 +0200
committerPeter Simons <simons@cryp.to>2009-06-10 01:00:40 +0200
commit23dc5e7045c3be019cf0d9ff1be7986c0638e79d (patch)
treea5b9984364637a2c624547f18513afc05bdc26c7 /SConstruct
parent15cfccc27359132f4a718f8d1410c6e20b1220ff (diff)
downloadautoconf-archive-23dc5e7045c3be019cf0d9ff1be7986c0638e79d.tar.gz
Use tidy to pretty-print the generated html files (and to warn about mistakes).
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct1
1 files changed, 1 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index bbcbe29..821f04d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -33,5 +33,6 @@ for m in Glob(path.join(m4dir, "*.m4")):
s = Command(t, [s, "markdown.st"], formatMacro, inputEncoding = "latin1", outputEncoding = "utf-8")
t = path.splitext(t)[0] + ".html"
s = Command(t, [s, cssfile, "header.html"], "pandoc --standalone --title-prefix='Autoconf Macro: ' --include-before-body=header.html --css=autoconf-archive.css --from=markdown --to=html -o $TARGET $SOURCE")
+ AddPostAction(s, "@tidy -quiet --indent yes --indent-spaces 1 --write-back yes --tidy-mark no -wrap 80 --hide-comments yes $TARGET")
Clean(".", [stagedir])