Skip to content

Commit c22da6f

Browse files
committed
cleanup templates to reduce "bad" whitespace in generated file
1 parent 441530f commit c22da6f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

site/genref/markdown/members.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ define "members" }}
2-
{{/* . is a apiType */}}
2+
{{/* . is a apiType */}}
33
{{- range .GetMembers -}}
44
{{/* . is a apiMember */}}
55
{{- if not .Hidden }}

site/genref/markdown/type.tpl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@
2222
<table class="table">
2323
<thead><tr><th width="30%">Field</th><th>Description</th></tr></thead>
2424
<tbody>
25-
{{/* . is a apiType */}}
26-
{{- if .IsExported -}}
25+
{{/* . is a apiType */}}
26+
{{- if .IsExported -}}
2727
{{/* Add apiVersion and kind rows if deemed necessary */}}
2828
<tr><td><code>apiVersion</code><br/>string</td><td><code>{{- .APIGroup -}}</code></td></tr>
2929
<tr><td><code>kind</code><br/>string</td><td><code>{{- .Name.Name -}}</code></td></tr>
30-
{{ end -}}
31-
30+
{{- end -}}
3231
{{/* The actual list of members is in the following template */}}
3332
{{- template "members" . -}}
3433
</tbody>

0 commit comments

Comments
 (0)