Skip to content

Commit

Permalink
fix: fix newlines on template
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceJJones committed Jun 14, 2024
1 parent 7a8a728 commit 8ae0684
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/formatters/mikrotik/mikrotik.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if not $.IPv6Only -}}
{{if not $.IPv6Only -}}
:global {{$.NameOfMikrotikFunction}} do={
:local list "{{$.ListName}}"
:local address $1
Expand All @@ -11,7 +11,8 @@
/ip firewall address-list add list=$list address=$address comment=$comment timeout="$timeout"
}
}
{{- end}}
{{- if not $.IPv4Only}}
{{end}}{{end}}
{{- if not $.IPv4Only -}}
:global {{$.NameOfMikrotikFunction}}v6 do={
:local list "{{$.ListName}}"
Expand Down

0 comments on commit 8ae0684

Please sign in to comment.