Removing whitespace from beginning of lines of generated HTML pages
- Otherwise the indentation is not pretty between headers, content and footerswebsite
parent
dd7d85222f
commit
bdc4c37b21
4
Makefile
4
Makefile
|
@ -33,7 +33,9 @@ $(outdir)/images/%.png: images/%.png | $(outdir)
|
||||||
$(outdir)/%.html: %.html $(header) $(footer) | $(outdir)
|
$(outdir)/%.html: %.html $(header) $(footer) | $(outdir)
|
||||||
cat $(header) \
|
cat $(header) \
|
||||||
| sed 's/\(<body\)/\1 class="$*"/' \
|
| sed 's/\(<body\)/\1 class="$*"/' \
|
||||||
| cat - $< $(footer) > $@
|
| cat - $< $(footer) \
|
||||||
|
| sed 's/^ \+//' \
|
||||||
|
> $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
${RM} -r webroot
|
${RM} -r webroot
|
||||||
|
|
Loading…
Reference in New Issue