From: Rob Pike Date: Wed, 22 Apr 2009 05:26:08 +0000 (-0700) Subject: fix template. X-Git-Tag: weekly.2009-11-06~1773 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4b62e8d7efae91424acb23abba957d8065e85e33;p=gostls13.git 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 --- diff --git a/usr/gri/pretty/packagelist.txt b/usr/gri/pretty/packagelist.txt index 380cfa3763..57d9f73e0e 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}