1
0
Fork 0

Removing whitespace from beginning of lines of generated HTML pages

- Otherwise the indentation is not pretty between headers, content and footers
website
Mike Gerwitz 2011-11-23 23:43:45 -05:00
parent dd7d85222f
commit bdc4c37b21
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ $(outdir)/images/%.png: images/%.png | $(outdir)
$(outdir)/%.html: %.html $(header) $(footer) | $(outdir)
cat $(header) \
| sed 's/\(<body\)/\1 class="$*"/' \
| cat - $< $(footer) > $@
| cat - $< $(footer) \
| sed 's/^ \+//' \
> $@
clean:
${RM} -r webroot