summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-04-21 22:26:08 -0700
committerRob Pike <r@golang.org>2009-04-21 22:26:08 -0700
commitf9f877f216b964e0ee1b765be4b63aaa3d4f10fe (patch)
tree8ca449296ede7ae5b7bb9159144f78d9e200aee3
parent62a148a5d14e34cc6abead211d3fa9fff837cbd9 (diff)
downloadgolang-f9f877f216b964e0ee1b765be4b63aaa3d4f10fe.tar.gz
fix template.
.or works in .repeated so remove the comment. the bug was in the template: .section executes iff the field is non-empty. R=gri DELTA=13 (6 added, 7 deleted, 0 changed) OCL=27710 CL=27712
-rw-r--r--usr/gri/pretty/packagelist.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/gri/pretty/packagelist.txt b/usr/gri/pretty/packagelist.txt
index 380cfa376..57d9f73e0 100644
--- a/usr/gri/pretty/packagelist.txt
+++ b/usr/gri/pretty/packagelist.txt
@@ -1,11 +1,10 @@
-{.section Packages}
-{# TODO .or doesn't work on .repeated - template bug}
-{.repeated section @}
+{.repeated section Packages}
godoc {pakname}
-{.end}
{.or}
-package not found: {Path}
+godoc: package not found: {Path}
{.end}
+{.section Packages}
{.repeated section Subdirs}
godoc {Path}/{Name}/
{.end}
+{.end}