From 4b62e8d7efae91424acb23abba957d8065e85e33 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 21 Apr 2009 22:26:08 -0700 Subject: [PATCH] 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 --- usr/gri/pretty/packagelist.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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} -- 2.48.1