From 0ec20e7e323da50d33093dbaf1e4f74a295a8a1c Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Fri, 2 Nov 2018 11:32:30 -0700 Subject: [PATCH] trim whitespace around sub-project descriptions so block descriptions look the same as inline descriptions. --- generator/app.go | 1 + generator/sig_readme.tmpl | 2 +- sig-testing/README.md | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/generator/app.go b/generator/app.go index a75e2b8c5..8fb971252 100644 --- a/generator/app.go +++ b/generator/app.go @@ -178,6 +178,7 @@ func getExistingContent(path string, fileFormat string) (string, error) { var funcMap = template.FuncMap{ "tzUrlEncode": tzUrlEncode, + "trimSpace": strings.TrimSpace, } // tzUrlEncode returns a url encoded string without the + shortcut. This is diff --git a/generator/sig_readme.tmpl b/generator/sig_readme.tmpl index 81646625f..0d4d347fa 100644 --- a/generator/sig_readme.tmpl +++ b/generator/sig_readme.tmpl @@ -62,7 +62,7 @@ The following subprojects are owned by sig-{{.Label}}: {{- range .Subprojects }} - **{{.Name}}** {{- if .Description }} - - Description: {{ .Description }} + - Description: {{ trimSpace .Description }} {{- end }} - Owners: {{- range .Owners }} diff --git a/sig-testing/README.md b/sig-testing/README.md index e6a814e18..385d6f66d 100644 --- a/sig-testing/README.md +++ b/sig-testing/README.md @@ -35,7 +35,6 @@ The Chairs of the SIG run operations and processes governing the SIG. The following subprojects are owned by sig-testing: - **kind** - Description: Kubernetes IN Docker. Run Kubernetes test clusters on your local machine using Docker containers as nodes. - - Owners: - https://raw.githubusercontent.com/kubernetes-sigs/kind/master/OWNERS - **repo-publishing** @@ -43,7 +42,6 @@ The following subprojects are owned by sig-testing: - https://raw.githubusercontent.com/kubernetes/publishing-bot/master/OWNERS - **testing-commons** - Description: The Testing Commons is a subproject within the Kubernetes sig-testing community interested code structure, layout, and execution of common test code used throughout the kubernetes project - - Owners: - https://raw.githubusercontent.com/kubernetes-sigs/testing_frameworks/master/OWNERS - https://raw.githubusercontent.com/kubernetes/kubernetes/master/test/OWNERS