From 880108c7506ec110b7bd11dbc9b491525bad2976 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 9 Apr 2020 20:20:45 +0200 Subject: pppoe: enable Jinja2 trim_blocks --- src/conf_mode/interfaces-pppoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/interfaces-pppoe.py') diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py index 26441838e..5f073dac6 100755 --- a/src/conf_mode/interfaces-pppoe.py +++ b/src/conf_mode/interfaces-pppoe.py @@ -161,7 +161,7 @@ def generate(pppoe): # Prepare Jinja2 template loader from files tmpl_path = os.path.join(vyos_data_dir["data"], "templates", "pppoe") fs_loader = FileSystemLoader(tmpl_path) - env = Environment(loader=fs_loader) + env = Environment(loader=fs_loader, trim_blocks=True) # set up configuration file path variables where our templates will be # rendered into -- cgit v1.2.3