]> Cypherpunks repositories - gostls13.git/commitdiff
fix template.
authorRob Pike <r@golang.org>
Wed, 22 Apr 2009 05:26:08 +0000 (22:26 -0700)
committerRob Pike <r@golang.org>
Wed, 22 Apr 2009 05:26:08 +0000 (22:26 -0700)
.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

usr/gri/pretty/packagelist.txt

index 380cfa3763a90830ece979291ef2cd7d9ae7d54c..57d9f73e0e6169ccc7c833072e88b4af954f93c4 100644 (file)
@@ -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}