improves documentation formating
authorJosé Bollo <jose.bollo@iot.bzh>
Sun, 29 May 2016 08:27:26 +0000 (10:27 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Sun, 29 May 2016 08:27:26 +0000 (10:27 +0200)
Change-Id: I70902f6fa8c0381dd4a5eefb050a971ca2c80b12
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
doc/updt.sh

index af64e31..1c9d023 100755 (executable)
@@ -29,7 +29,7 @@ updadate() {
 mkhtml() {
   local x=$1
   local h=${x%%.md}.html
-  expand -i $x | sed 's:        :    :' > $h.pre
+  expand -i $x | sed 's:^        :    :' > $h.pre
   markdown -f toc,autolink $h.pre > $h.toc.no
   markdown -Tf toc,autolink $h.pre > $h.toc.yes
   head --bytes=-$(stat -c %s $h.toc.no) $h.toc.yes > $h.toc