Browse Source

indenting improved in somple places

Xabier de Zuazo 11 years ago
parent
commit
7c0e2871d6

+ 6 - 6
libraries/conf.rb

@@ -79,18 +79,18 @@ module Dovecot
           service_proto = service.split(":")[0]
           service_name = service.split(":")[1]
   -%>
-  <%= service_proto %>_listener <%= service_name %> {
-  <%     values.each do |key, value|-%>
-    <%= key %> = <%= @Dovecot_Conf.value(value) %>
-  <%     end -%>
+  <%=     service_proto %>_listener <%= service_name %> {
+  <%        values.each do |key, value|-%>
+    <%=       key %> = <%= @Dovecot_Conf.value(value) %>
+  <%        end -%>
   }
   <%     end -%>
   <%   end -%>
   <% end -%>
   <% @conf.each do |key, value|
-      if key != "listeners"
+       if key != "listeners"
   -%>
-  <%= key %> = <%= @Dovecot_Conf.value(value) %>
+  <%=    key %> = <%= @Dovecot_Conf.value(value) %>
   <%   end -%>
   <% end -%>
 }'

+ 1 - 1
templates/default/conf.d/10-director.conf.erb

@@ -26,7 +26,7 @@
 <%= Dovecot::Conf.attribute(@conf, 'director_doveadm_port', 0) %>
 
 <% if @services['director'].kind_of?(Hash) and @services['director'].length > 0 -%>
-<%= Dovecot::Conf.service('director', @services['director']) %>
+<%=  Dovecot::Conf.service('director', @services['director']) %>
 <% else -%>
 # To enable director service, uncomment the modes and assign a port.
 service director {

+ 1 - 1
templates/default/conf.d/10-logging.conf.erb

@@ -44,7 +44,7 @@
 <%= Dovecot::Conf.attribute(@conf, 'verbose_ssl', false) %>
 
 <% if @plugins.has_key?('mail_log') and @plugins['mail_log'].kind_of?(Hash) -%>
-<%= Dovecot::Conf.plugin('mail_log', @plugins['mail_log']) %>
+<%=  Dovecot::Conf.plugin('mail_log', @plugins['mail_log']) %>
 <% else -%>
 plugin {
   # mail_log plugin provides more event logging for mail processes.

+ 1 - 1
templates/default/dovecot.conf.erb

@@ -82,7 +82,7 @@ protocols = <%= Dovecot::Conf.protocols(@protocols) %>
 <% if @conf['dict'].kind_of?(Hash) -%>
 dict {
 <%   @conf['dict'].each do |key, value| -%>
-  <%= key %> = <%= Dovecot::Conf.value(value) %>
+  <%=  key %> = <%= Dovecot::Conf.value(value) %>
 <%   end -%>
 }
 <% else -%>