Skip to content

Commit

Permalink
Add newline before dns entries closes #140
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Nov 15, 2024
1 parent 041d1e4 commit ace4572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminui/templates/settings/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h6 class="m-0 font-weight-bold text-primary">General</h6>

<div class="form-group">
<label for="dns">DNS</label>
<textarea class="form-control" id="dns" name="dns" rows="3">{{range .Settings.DNS}}{{.}}{{end}}</textarea>
<textarea class="form-control" id="dns" name="dns" rows="3">{{range $index, $element := .Settings.DNS}}{{if $index}}{{"\n"}}{{end}}{{.}}{{end}}</textarea>
</div>
<div class="form-row">
<div class="form-group col-md-6">
Expand Down

0 comments on commit ace4572

Please sign in to comment.