commit 99c3c49d2ec94677bcc861d4e74086b8d268f207
parent 42814b927af136e0432fefa4be40d8306b329281
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sat, 7 Jan 2023 07:02:16 -0800
remove empty spaces from template
Diffstat:
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/pkg/web/handlers/api/v1/battleship.go b/pkg/web/handlers/api/v1/battleship.go
@@ -476,24 +476,24 @@ Against <span {{ .EnemyUserStyle | HTMLAttr }}>@{{ .EnemyUsername }}</span><br /
<form method="post" style="margin-left: 10px;" action="/api/v1/chat/top-bar/battleship" target="iframe1">
<table style="width: 177px; height: 177px; background-image: url(data:image/png;base64,{{ .Img1B64 }})">
<tr style="height: 16px;"><td colspan="11"> </td></tr>
- {{ range $row := .Rows }}
+ {{- range $row := .Rows -}}
<tr style="height: 16px;">
<td style="width: 16px;"></td>
- {{ range $col := $.Cols }}
- {{ if NotShot $row $col }}
- {{ if and $.YourTurn (not $.GameEnded) }}
+ {{- range $col := $.Cols -}}
+ {{- if NotShot $row $col -}}
+ {{- if and $.YourTurn (not $.GameEnded) -}}
<td style="width: 16px;">
<button style="height: 15px; width: 15px;" name="message" value="/pm {{ $.EnemyUsername }} /bs {{ GetRune $row }}{{ $col }}"></button>
</td>
- {{ else }}
+ {{- else -}}
<td style="width: 16px;"></td>
- {{ end }}
- {{ else }}
+ {{- end -}}
+ {{- else -}}
<td style="width: 16px;"></td>
- {{ end }}
- {{ end }}
+ {{- end -}}
+ {{- end -}}
</tr>
- {{ end }}
+ {{- end -}}
</table>
</form>
</td>