diff options
author | Peter Simons <simons@cryp.to> | 2009-06-10 01:00:40 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-06-10 01:00:40 +0200 |
commit | 23dc5e7045c3be019cf0d9ff1be7986c0638e79d (patch) | |
tree | a5b9984364637a2c624547f18513afc05bdc26c7 /SConstruct | |
parent | 15cfccc27359132f4a718f8d1410c6e20b1220ff (diff) | |
download | autoconf-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-- | SConstruct | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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]) |