From a04fe4681b61fb77b3ad37acb24384e45abd8c72 Mon Sep 17 00:00:00 2001 From: Marc-Alexandre Chan Date: Sun, 9 Oct 2016 07:29:52 -0400 Subject: [PATCH] Fix missing spaces in long pg_hba.conf lines In generated pg_hba.conf, fix missing spaces between arguments if an argument is longer than the column width allotted to that argument in the line. --- postgres/templates/pg_hba.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/templates/pg_hba.conf.j2 b/postgres/templates/pg_hba.conf.j2 index 06a8af1..560c45e 100644 --- a/postgres/templates/pg_hba.conf.j2 +++ b/postgres/templates/pg_hba.conf.j2 @@ -38,5 +38,5 @@ local all postgres peer {%- endif %} {%- endif %} -{{ '{0:<8}{1:<16}{2:<16}{3:<24}{4}'.format(*acl) -}} +{{ '{0:<7} {1:<15} {2:<15} {3:<23} {4}'.format(*acl) -}} {% endfor %}