summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Danese <mikedanese@google.com>2018-11-02 11:32:30 -0700
committerMike Danese <mikedanese@google.com>2018-11-02 11:37:02 -0700
commit0ec20e7e323da50d33093dbaf1e4f74a295a8a1c (patch)
tree92eaa4d598699497b3fded5fcd7912d50ccbbdb3
parent76fd89e0e10db497d8ea651c65d641b1a88a6c25 (diff)
trim whitespace around sub-project descriptions
so block descriptions look the same as inline descriptions.
-rw-r--r--generator/app.go1
-rw-r--r--generator/sig_readme.tmpl2
-rw-r--r--sig-testing/README.md2
3 files changed, 2 insertions, 3 deletions
diff --git a/generator/app.go b/generator/app.go
index a75e2b8c..8fb97125 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 81646625..0d4d347f 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 e6a814e1..385d6f66 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