From 9c182b70426b38bcd524223eb73f03c4f357f2ad Mon Sep 17 00:00:00 2001
From: Russ Allbery <rra@stanford.edu>
Date: Tue, 2 Jul 2013 18:06:05 -0700
Subject: [PATCH] One more spacing fix for newsyslog::config

Having a blank line when there's no stop or restart action is going
to bother me too much.  Make it go away.  Also remove the extra
spacing after stop, since there usually isn't both stop and restart.
---
 templates/newsyslog/config.erb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/templates/newsyslog/config.erb b/templates/newsyslog/config.erb
index a776302..721d342 100644
--- a/templates/newsyslog/config.erb
+++ b/templates/newsyslog/config.erb
@@ -7,12 +7,14 @@ set archive = <%= archive %>/%Y/%M/%d/%m.%n
 
 <%= name %> {
 <% if stop != '' then -%>
-    stop:    <%= stop %>
+    stop: <%= stop %>
 <% end -%>
 <% if restart != '' then -%>
     restart: <%= restart %>
 <% end -%>
+<% if stop != '' || restart != '' then -%>
 
+<% end -%>
 <% logs.each do |log|                                       -%>
 <%   log_name = log.gsub(/[\.\-\<\>]/, '_')                 -%>
 <%   path     = directory + '/' + log                       -%>
-- 
GitLab