ruleset.uc: don't trim newline before comment sign
authorStijn Tintel <stijn@linux-ipv6.be>
Fri, 7 Jan 2022 08:45:50 +0000 (10:45 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Sun, 9 Jan 2022 13:22:05 +0000 (15:22 +0200)
When flow offloading is enabled, the comment block is inserted in the
ruleset like this:

table inet fw4 { #
# Flowtable
#

This is due to the trimming of newlines which was done to avoid having
to modify all the test files. A better solution is to just add an extra
newline in the template.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/templates/ruleset.uc

index bb792051bba860a86fd94772fa5410a0a6967aed..56d18ec1007bbc830a739f788e03338af5d26892 100644 (file)
@@ -2,7 +2,7 @@ table inet fw4
 flush table inet fw4
 
 table inet fw4 {
-{%- if (fw4.default_option("flow_offloading") && length(devices) > 0): %}
+{% if (fw4.default_option("flow_offloading") && length(devices) > 0): %}
        #
        # Flowtable
        #
@@ -16,7 +16,6 @@ table inet fw4 {
        }
 
 {% endif %}
-
        #
        # Set definitions
        #