summaryrefslogtreecommitdiff
path: root/generator/app.go
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 /generator/app.go
parent76fd89e0e10db497d8ea651c65d641b1a88a6c25 (diff)
trim whitespace around sub-project descriptions
so block descriptions look the same as inline descriptions.
Diffstat (limited to 'generator/app.go')
-rw-r--r--generator/app.go1
1 files changed, 1 insertions, 0 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