From 011aeb6252015a7ecc9e57848fc8abaebc1dcbad Mon Sep 17 00:00:00 2001
From: eileen <eileen@fuzion.co.nz>
Date: Mon, 13 May 2013 14:23:02 +1200
Subject: [PATCH] CRM-12595 fix formatting in xml files

---
 xml/configuration/AdultDayCareReferral.xml    |   4 +-
 xml/configuration/HousingSupport.xml          |   4 +-
 xml/configuration/Settings.xml                |  38 +--
 xml/schema/ACL/Cache.xml                      |   2 +-
 xml/schema/Activity/ActivityTarget.xml        |   6 +-
 xml/schema/Bridge/OG.xml                      | 120 ++++----
 xml/schema/Core/ActionSchedule.xml            |  12 +-
 xml/schema/Core/MappingField.xml              |   2 +-
 xml/schema/Event/Cart/files.xml               |   2 +-
 xml/schema/Mailing/Event/Forward.xml          |   2 +-
 xml/schema/Mailing/Event/Queue.xml            |   4 +-
 xml/schema/Member/Membership.xml              |   2 +-
 .../message_templates/case_activity_html.tpl  |  12 +-
 .../contribution_online_receipt_html.tpl      |   2 +-
 .../contribution_recurring_billing_html.tpl   |   2 +-
 .../contribution_recurring_edit_text.tpl      |   6 +-
 .../contribution_recurring_notify_html.tpl    |   4 +-
 .../contribution_recurring_notify_text.tpl    |   2 +-
 .../event_offline_receipt_html.tpl            |  22 +-
 .../event_offline_receipt_text.tpl            |   4 +-
 .../event_registration_receipt_html.tpl       | 256 +++++++++---------
 .../event_registration_receipt_text.tpl       |   2 +-
 .../membership_autorenew_billing_html.tpl     |   4 +-
 .../membership_offline_receipt_html.tpl       |   8 +-
 .../membership_offline_receipt_text.tpl       |   2 +-
 .../membership_online_receipt_html.tpl        |   6 +-
 .../participant_confirm_html.tpl              |  18 +-
 .../petition_confirmation_needed_html.tpl     |   2 +-
 .../petition_confirmation_needed_text.tpl     |   4 +-
 .../test_preview_subject.tpl                  |   2 +-
 .../message_templates/test_preview_text.tpl   |   2 +-
 31 files changed, 279 insertions(+), 279 deletions(-)

diff --git a/xml/configuration/AdultDayCareReferral.xml b/xml/configuration/AdultDayCareReferral.xml
index 42c72a0054..d43daeae17 100644
--- a/xml/configuration/AdultDayCareReferral.xml
+++ b/xml/configuration/AdultDayCareReferral.xml
@@ -19,7 +19,7 @@
     <ActivityType>
       <name>Follow up</name>
     </ActivityType>
-	<ActivityType>
+  <ActivityType>
       <name>Change Case Type</name>
     </ActivityType>
     <ActivityType>
@@ -79,6 +79,6 @@
     </RelationshipType>
     <RelationshipType>
         <name>Benefits Specialist</name>
-    </RelationshipType>	  
+    </RelationshipType>
  </CaseRoles>
 </CaseType>
diff --git a/xml/configuration/HousingSupport.xml b/xml/configuration/HousingSupport.xml
index 8eaa82e97b..6a1681fbd8 100644
--- a/xml/configuration/HousingSupport.xml
+++ b/xml/configuration/HousingSupport.xml
@@ -25,7 +25,7 @@
     <ActivityType>
       <name>Follow up</name>
     </ActivityType>
-	<ActivityType>
+  <ActivityType>
       <name>Change Case Type</name>
     </ActivityType>
     <ActivityType>
@@ -104,6 +104,6 @@
     </RelationshipType>
     <RelationshipType>
         <name>Benefits Specialist</name>
-    </RelationshipType>	  
+    </RelationshipType>
  </CaseRoles>
 </CaseType>
diff --git a/xml/configuration/Settings.xml b/xml/configuration/Settings.xml
index a6cd3cada5..ffd76a0e37 100644
--- a/xml/configuration/Settings.xml
+++ b/xml/configuration/Settings.xml
@@ -1,25 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Settings>
-	<!-- List the group whose members should appear as contacts on all Manage Case screens.
-		 Only one group name is supported for now.
-		 It needs to match the name column in the civicrm_group table (not the title), so avoid using space characters. -->
-	<group name="Case_Resources" />
-	<!-- Set this to 1 if you want case activity emails to be redacted -->
+  <!-- List the group whose members should appear as contacts on all Manage Case screens.
+     Only one group name is supported for now.
+     It needs to match the name column in the civicrm_group table (not the title), so avoid using space characters. -->
+  <group name="Case_Resources" />
+  <!-- Set this to 1 if you want case activity emails to be redacted -->
         <RedactActivityEmail>0</RedactActivityEmail> 
-	<!-- Set this to 1 if you want to allow multiple clients to be associated with a single case -->
-	<AllowMultipleCaseClients>0</AllowMultipleCaseClients>
-	<!-- Set this to 1 if you want to have activity types on Manage Case
-	screen sorted in XML file order, default is alphabetical -->
-	<NaturalActivityTypeSort>0</NaturalActivityTypeSort>	
-	<!-- Add activity types which should NOT be editable here with editable = 0 -->
-	<ActivityTypes>
-		<ActivityType>
-        	<name>Change Case Status</name>
-		 	<editable>0</editable>
+  <!-- Set this to 1 if you want to allow multiple clients to be associated with a single case -->
+  <AllowMultipleCaseClients>0</AllowMultipleCaseClients>
+  <!-- Set this to 1 if you want to have activity types on Manage Case
+  screen sorted in XML file order, default is alphabetical -->
+  <NaturalActivityTypeSort>0</NaturalActivityTypeSort>  
+  <!-- Add activity types which should NOT be editable here with editable = 0 -->
+  <ActivityTypes>
+    <ActivityType>
+          <name>Change Case Status</name>
+       <editable>0</editable>
         </ActivityType>
-		<ActivityType>
-        	<name>Change Case Start Date</name>
-		 	<editable>0</editable>
+    <ActivityType>
+          <name>Change Case Start Date</name>
+       <editable>0</editable>
         </ActivityType>
-	</ActivityTypes>
+  </ActivityTypes>
 </Settings>
\ No newline at end of file
diff --git a/xml/schema/ACL/Cache.xml b/xml/schema/ACL/Cache.xml
index 5143df587c..810fb24afc 100644
--- a/xml/schema/ACL/Cache.xml
+++ b/xml/schema/ACL/Cache.xml
@@ -36,7 +36,7 @@
         <required>true</required>
         <comment>Foreign Key to ACL</comment>
         <add>1.6</add>
-    </field>    
+    </field>
     <foreignKey>
        <name>acl_id</name>
        <table>civicrm_acl</table>
diff --git a/xml/schema/Activity/ActivityTarget.xml b/xml/schema/Activity/ActivityTarget.xml
index bcdeffbfee..6b5cba7867 100644
--- a/xml/schema/Activity/ActivityTarget.xml
+++ b/xml/schema/Activity/ActivityTarget.xml
@@ -18,7 +18,7 @@
     <name>id</name>
     <autoincrement>true</autoincrement>
   </primaryKey>
-   <field> 
+   <field>
     <name>activity_id</name>
     <type>int unsigned</type>
     <title>Activity ID</title>
@@ -34,7 +34,7 @@
     <onDelete>CASCADE</onDelete>
   </foreignKey>
 
-   <field> 
+   <field>
     <name>target_contact_id</name>
     <title>Contact ID (match to contact)</title>
     <import>true</import>
@@ -54,7 +54,7 @@
   <index>
        <name>UI_activity_target_contact_id</name>
        <fieldName>target_contact_id</fieldName>
-       <fieldName>activity_id</fieldName> 
+       <fieldName>activity_id</fieldName>
        <unique>true</unique>
        <add>2.0</add>
   </index>
diff --git a/xml/schema/Bridge/OG.xml b/xml/schema/Bridge/OG.xml
index 0274a19b98..c9e8a28e92 100644
--- a/xml/schema/Bridge/OG.xml
+++ b/xml/schema/Bridge/OG.xml
@@ -17,67 +17,67 @@
        <name>id</name>
        <autoincrement>true</autoincrement>
   </primaryKey>
-  <field> 
-       <name>drupal_og_id</name> 
-       <type>int unsigned</type> 
-       <comment>Foreign key to the organic group.</comment> 
-       <add>2.0</add> 
+  <field>
+       <name>drupal_og_id</name>
+       <type>int unsigned</type>
+       <comment>Foreign key to the organic group.</comment>
+       <add>2.0</add>
   </field>
-  <index> 
-       <name>index_drupal_og_id</name> 
-       <fieldName>index_drupal_og_id</fieldName> 
-       <add>2.0</add> 
+  <index>
+       <name>index_drupal_og_id</name>
+       <fieldName>index_drupal_og_id</fieldName>
+       <add>2.0</add>
   </index>
-  <field> 
-      <name>group_id</name> 
-      <type>int unsigned</type> 
-      <required>true</required> 
-      <comment>FK to civicrm group.</comment> 
-      <add>2.0</add> 
-  </field> 
-  <foreignKey> 
-       <name>group_id</name> 
-       <table>civicrm_group</table> 
-       <key>id</key> 
-       <add>2.0</add> 
-  </foreignKey> 
-  <field> 
-      <name>acl_id</name> 
-      <type>int unsigned</type> 
-      <required>true</required> 
-      <comment>FK to civicrm acl.</comment> 
-      <add>2.0</add> 
-  </field> 
-  <foreignKey> 
-       <name>acl_id</name> 
-       <table>civicrm_acl</table> 
-       <key>id</key> 
-       <add>2.0</add> 
-  </foreignKey> 
-  <field> 
-      <name>admin_group_id</name> 
-      <type>int unsigned</type> 
-      <required>true</required> 
-      <comment>FK to admin civicrm group.</comment> 
-      <add>2.0</add> 
-  </field> 
-  <foreignKey> 
-       <name>admin_group_id</name> 
-       <table>civicrm_group</table> 
-       <key>id</key> 
-       <add>2.0</add> 
-  </foreignKey> 
-  <field> 
-      <name>admin_acl_id</name> 
-      <type>int unsigned</type> 
-      <required>true</required> 
-      <comment>FK to civicrm acl.</comment> 
+  <field>
+      <name>group_id</name>
+      <type>int unsigned</type>
+      <required>true</required>
+      <comment>FK to civicrm group.</comment>
+      <add>2.0</add>
+  </field>
+  <foreignKey>
+       <name>group_id</name>
+       <table>civicrm_group</table>
+       <key>id</key>
+       <add>2.0</add>
+  </foreignKey>
+  <field>
+      <name>acl_id</name>
+      <type>int unsigned</type>
+      <required>true</required>
+      <comment>FK to civicrm acl.</comment>
+      <add>2.0</add>
+  </field>
+  <foreignKey>
+       <name>acl_id</name>
+       <table>civicrm_acl</table>
+       <key>id</key>
+       <add>2.0</add>
+  </foreignKey>
+  <field>
+      <name>admin_group_id</name>
+      <type>int unsigned</type>
+      <required>true</required>
+      <comment>FK to admin civicrm group.</comment>
       <add>2.0</add> 
-  </field> 
-  <foreignKey> 
-       <name>admin_acl_id</name> 
-       <table>civicrm_acl</table> 
-       <key>id</key> 
-       <add>2.0</add> 
-  </foreignKey> 
+  </field>
+  <foreignKey>
+       <name>admin_group_id</name>
+       <table>civicrm_group</table>
+       <key>id</key>
+       <add>2.0</add>
+  </foreignKey>
+  <field>
+      <name>admin_acl_id</name>
+      <type>int unsigned</type>
+      <required>true</required>
+      <comment>FK to civicrm acl.</comment>
+      <add>2.0</add>
+  </field>
+  <foreignKey>
+       <name>admin_acl_id</name>
+       <table>civicrm_acl</table>
+       <key>id</key>
+       <add>2.0</add>
+  </foreignKey>
 </table>
diff --git a/xml/schema/Core/ActionSchedule.xml b/xml/schema/Core/ActionSchedule.xml
index 828414e3c8..12d6feb003 100644
--- a/xml/schema/Core/ActionSchedule.xml
+++ b/xml/schema/Core/ActionSchedule.xml
@@ -192,7 +192,7 @@
         <name>group_id</name>
         <type>int unsigned</type>
         <comment>FK to Group</comment>
-	<add>3.4</add>
+  <add>3.4</add>
     </field>
     <foreignKey>
         <name>group_id</name>
@@ -202,14 +202,14 @@
     </foreignKey>
     <field>
           <name>msg_template_id</name>
-	  <type>int unsigned</type>
-	  <comment>FK to the message template.</comment>
+    <type>int unsigned</type>
+    <comment>FK to the message template.</comment>
     </field>
     <foreignKey>
           <name>msg_template_id</name>
-	  <table>civicrm_msg_template</table>
-	  <key>id</key>
-	  <onDelete>SET NULL</onDelete>
+    <table>civicrm_msg_template</table>
+    <key>id</key>
+    <onDelete>SET NULL</onDelete>
     </foreignKey>
     <field>
        <name>absolute_date</name>
diff --git a/xml/schema/Core/MappingField.xml b/xml/schema/Core/MappingField.xml
index c17e575ed2..fd6125ba01 100644
--- a/xml/schema/Core/MappingField.xml
+++ b/xml/schema/Core/MappingField.xml
@@ -111,7 +111,7 @@
   <field>
         <name>grouping</name>
         <type>int unsigned</type>
-	<default>1</default>
+        <default>1</default>
         <comment>Used to group mapping_field records into related sets (e.g. for criteria sets in search builder mappings).</comment>
       <add>1.5</add>
   </field>
diff --git a/xml/schema/Event/Cart/files.xml b/xml/schema/Event/Cart/files.xml
index e7790cfe37..221e1d1004 100644
--- a/xml/schema/Event/Cart/files.xml
+++ b/xml/schema/Event/Cart/files.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <tables xmlns:xi="http://www.w3.org/2001/XInclude">
-  <xi:include href="Cart.xml"	      parse="xml" />
+  <xi:include href="Cart.xml"        parse="xml" />
   <xi:include href="EventInCart.xml"  parse="xml" />
 </tables>
diff --git a/xml/schema/Mailing/Event/Forward.xml b/xml/schema/Mailing/Event/Forward.xml
index 9b9ab3d3be..813abd255c 100644
--- a/xml/schema/Mailing/Event/Forward.xml
+++ b/xml/schema/Mailing/Event/Forward.xml
@@ -36,7 +36,7 @@
         <name>dest_queue_id</name>
         <table>civicrm_mailing_event_queue</table>
         <key>id</key>
-	<onDelete>SET NULL</onDelete>
+        <onDelete>SET NULL</onDelete>
     </foreignKey>
     <field>
         <name>time_stamp</name>
diff --git a/xml/schema/Mailing/Event/Queue.xml b/xml/schema/Mailing/Event/Queue.xml
index 38486b83a6..13c8d775d8 100644
--- a/xml/schema/Mailing/Event/Queue.xml
+++ b/xml/schema/Mailing/Event/Queue.xml
@@ -30,7 +30,7 @@
     <field>
         <name>email_id</name>
         <type>int unsigned</type>
-	<default>NULL</default>
+  <default>NULL</default>
         <comment>FK to Email</comment>
     </field>
     <foreignKey>
@@ -61,7 +61,7 @@
     <field>
         <name>phone_id</name>
         <type>int unsigned</type>
-	<default>NULL</default>
+        <default>NULL</default>
         <comment>FK to Phone</comment>
     </field>
     <foreignKey>
diff --git a/xml/schema/Member/Membership.xml b/xml/schema/Member/Membership.xml
index d2c3969b80..8c7ef93bb9 100644
--- a/xml/schema/Member/Membership.xml
+++ b/xml/schema/Member/Membership.xml
@@ -132,7 +132,7 @@
   <field>
       <name>owner_membership_id</name>
       <type>int unsigned</type>
-	  <title>Primary Member ID</title>
+    <title>Primary Member ID</title>
       <comment>Optional FK to Parent Membership.</comment>
       <export>true</export>
       <add>1.7</add>
diff --git a/xml/templates/message_templates/case_activity_html.tpl b/xml/templates/message_templates/case_activity_html.tpl
index 24156e5601..dd54906ce3 100644
--- a/xml/templates/message_templates/case_activity_html.tpl
+++ b/xml/templates/message_templates/case_activity_html.tpl
@@ -39,25 +39,25 @@
       {if $manageCaseURL}
        <tr>
        <td colspan="2" {$valueStyle}>
-	   <a href="{$manageCaseURL}" title="{ts}Manage Case{/ts}">{ts}Manage Case{/ts}</a>
+     <a href="{$manageCaseURL}" title="{ts}Manage Case{/ts}">{ts}Manage Case{/ts}</a>
        </td>
        </tr>
       {/if}
      {/if}
-     {if $editActURL} 
+     {if $editActURL}
      <tr>
        <td colspan="2" {$valueStyle}>
-	 <a href="{$editActURL}" title="{ts}Edit this activity{/ts}">{ts}Edit this activity{/ts}</a>
+   <a href="{$editActURL}" title="{ts}Edit this activity{/ts}">{ts}Edit this activity{/ts}</a>
        </td>
      </tr>
      {/if}
      {if $viewActURL}
      <tr>
        <td colspan="2" {$valueStyle}>
-	 <a href="{$viewActURL}" title="{ts}View this activity{/ts}">{ts}View this activity{/ts}</a>
+   <a href="{$viewActURL}" title="{ts}View this activity{/ts}">{ts}View this activity{/ts}</a>
        </td>
-     </tr>	
-     {/if} 
+     </tr>
+     {/if}
      {foreach from=$activity.fields item=field}
       <tr>
        <td {$labelStyle}>
diff --git a/xml/templates/message_templates/contribution_online_receipt_html.tpl b/xml/templates/message_templates/contribution_online_receipt_html.tpl
index 976c24ad46..48bde393ba 100644
--- a/xml/templates/message_templates/contribution_online_receipt_html.tpl
+++ b/xml/templates/message_templates/contribution_online_receipt_html.tpl
@@ -137,7 +137,7 @@
          <td colspan="2" {$labelStyle}>
           {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
          </td>
-        {/if} 
+        {/if}
        <tr>
        </tr>
         <td colspan="2" {$labelStyle}>
diff --git a/xml/templates/message_templates/contribution_recurring_billing_html.tpl b/xml/templates/message_templates/contribution_recurring_billing_html.tpl
index 3e3ad1b6fc..f2b9d48842 100644
--- a/xml/templates/message_templates/contribution_recurring_billing_html.tpl
+++ b/xml/templates/message_templates/contribution_recurring_billing_html.tpl
@@ -58,7 +58,7 @@
             {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
         </td>
        </tr>
-  </table> 
+  </table>
 </center>
 
 </body>
diff --git a/xml/templates/message_templates/contribution_recurring_edit_text.tpl b/xml/templates/message_templates/contribution_recurring_edit_text.tpl
index 71a02ccbc1..423b00c9cd 100644
--- a/xml/templates/message_templates/contribution_recurring_edit_text.tpl
+++ b/xml/templates/message_templates/contribution_recurring_edit_text.tpl
@@ -1,8 +1,8 @@
-{ts 1=$contact.display_name}Dear %1{/ts}, 
+{ts 1=$contact.display_name}Dear %1{/ts},
 
-{ts}Your recurring contribution has been updated as requested:{/ts} 
+{ts}Your recurring contribution has been updated as requested:{/ts}
 
 {ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2(s) %3{/ts}
-{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if} 
+{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}
 
 {ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}
\ No newline at end of file
diff --git a/xml/templates/message_templates/contribution_recurring_notify_html.tpl b/xml/templates/message_templates/contribution_recurring_notify_html.tpl
index fc8513b2d7..3a6b18bac1 100644
--- a/xml/templates/message_templates/contribution_recurring_notify_html.tpl
+++ b/xml/templates/message_templates/contribution_recurring_notify_html.tpl
@@ -67,7 +67,7 @@
        </tr>
        <tr>
         <td {$labelStyle}>
-	 {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
+   {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
         </td>
        </tr>
      {/if}
@@ -77,7 +77,7 @@
      {if $auto_renew_membership}
       <tr>
        <td>
-        <p>{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}</p>   
+        <p>{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}</p>
        </td>
       </tr>
      {else}
diff --git a/xml/templates/message_templates/contribution_recurring_notify_text.tpl b/xml/templates/message_templates/contribution_recurring_notify_text.tpl
index 86602b7b40..5f54ca1568 100644
--- a/xml/templates/message_templates/contribution_recurring_notify_text.tpl
+++ b/xml/templates/message_templates/contribution_recurring_notify_text.tpl
@@ -10,7 +10,7 @@
 {ts 1=$cancelSubscriptionUrl}This membership will be renewed automatically. You can cancel the auto-renewal option by <a href="%1">visiting this web page</a>.{/ts}
 
 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts}
-        
+
 {else}
 {ts}Thanks for your recurring contribution sign-up.{/ts}
 
diff --git a/xml/templates/message_templates/event_offline_receipt_html.tpl b/xml/templates/message_templates/event_offline_receipt_html.tpl
index c0263439e4..da8df90665 100644
--- a/xml/templates/message_templates/event_offline_receipt_html.tpl
+++ b/xml/templates/message_templates/event_offline_receipt_html.tpl
@@ -178,12 +178,12 @@ registration process.{/ts}</p>
              <th>{ts}Qty{/ts}</th>
              <th>{ts}Each{/ts}</th>
              <th>{ts}Total{/ts}</th>
-	     {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
+       {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
             </tr>
             {foreach from=$value item=line}
              <tr>
               <td>
-	      {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}	
+        {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}
               </td>
               <td>
                {$line.qty}
@@ -194,11 +194,11 @@ registration process.{/ts}</p>
               <td>
                {$line.line_total|crmMoney}
               </td>
-	      {if  $pricesetFieldsCount }
-	      <td>
-		{$line.participant_count}
+        {if  $pricesetFieldsCount }
+        <td>
+    {$line.participant_count}
               </td>
-	      {/if}
+        {/if}
              </tr>
             {/foreach}
            </table>
@@ -228,10 +228,10 @@ registration process.{/ts}</p>
        </tr>
        {if $pricesetFieldsCount }
      <tr>
-       <td {$labelStyle}> 
-	 {ts}Total Participants{/ts}</td>   
+       <td {$labelStyle}>
+   {ts}Total Participants{/ts}</td>
        <td {$valueStyle}>
-	 {assign var="count" value= 0}
+   {assign var="count" value= 0}
          {foreach from=$lineItem item=pcount}
          {assign var="lineItemCount" value=0}
          {if $pcount neq 'skip'}
@@ -240,11 +240,11 @@ registration process.{/ts}</p>
            {/foreach}
            {if $lineItemCount < 1 }
            assign var="lineItemCount" value=1}
-           {/if}	
+           {/if}
            {assign var="count" value=$count+$lineItemCount}
          {/if}
          {/foreach}
-	 {$count}
+   {$count}
        </td>
      </tr>
      {/if}
diff --git a/xml/templates/message_templates/event_offline_receipt_text.tpl b/xml/templates/message_templates/event_offline_receipt_text.tpl
index b591f22361..0890ed6e8c 100644
--- a/xml/templates/message_templates/event_offline_receipt_text.tpl
+++ b/xml/templates/message_templates/event_offline_receipt_text.tpl
@@ -145,14 +145,14 @@ registration process.{/ts}
         {/foreach}
         {if $lineItemCount < 1 }
         {assign var="lineItemCount" value=1}
-        {/if}	
+        {/if}
       {assign var="count" value=$count+$lineItemCount}
       {/if}
       {/foreach}
 
 {ts}Total Participants{/ts}: {$count}
 {/if}
-   
+
 {if $is_pay_later }
 
 ==========================================================={if $pricesetFieldsCount }===================={/if}
diff --git a/xml/templates/message_templates/event_registration_receipt_html.tpl b/xml/templates/message_templates/event_registration_receipt_html.tpl
index f23503ea20..56159a7aea 100644
--- a/xml/templates/message_templates/event_registration_receipt_html.tpl
+++ b/xml/templates/message_templates/event_registration_receipt_html.tpl
@@ -27,40 +27,40 @@
     <p>Your order number is #{$transaction_id}. Please print this confirmation for your records.{if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
   Here's a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:</p>
 
-    
+
 {if $billing_name}
-	<table class="billing-info">
+  <table class="billing-info">
       <tr>
-		<th style="text-align: left;">
-		  {ts}Billing Name and Address{/ts}
-		</th>
+    <th style="text-align: left;">
+      {ts}Billing Name and Address{/ts}
+    </th>
       </tr>
       <tr>
-		<td>
-		  {$billing_name}<br />
-		  {$billing_street_address}<br />
-		  {$billing_city}, {$billing_state} {$billing_postal_code}<br/>
-		  <br/>
-		  {$email}
-		</td>
-	  </tr>
+    <td>
+      {$billing_name}<br />
+      {$billing_street_address}<br />
+      {$billing_city}, {$billing_state} {$billing_postal_code}<br/>
+      <br/>
+      {$email}
+    </td>
+    </tr>
     </table>
 {/if}
 {if $credit_card_type}
-	<p>&nbsp;</p>
-	<table class="billing-info">
+  <p>&nbsp;</p>
+  <table class="billing-info">
       <tr>
-		<th style="text-align: left;">
-		  {ts}Credit Card Information{/ts}
-		</th>
+    <th style="text-align: left;">
+      {ts}Credit Card Information{/ts}
+    </th>
       </tr>
       <tr>
-		<td>
-		  {$credit_card_type}<br />
-		  {$credit_card_number}<br />
-		  {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
-		</td>
-	  </tr>
+    <td>
+      {$credit_card_type}<br />
+      {$credit_card_number}<br />
+      {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
+    </td>
+    </tr>
     </table>
 {/if}
 {if $source}
@@ -70,117 +70,117 @@
     <p>&nbsp;</p>
     <table width="600">
       <thead>
-		<tr>
+    <tr>
 {if $line_items}
-		  <th style="text-align: left;">
-			Event
-		  </th>
-		  <th style="text-align: left;">
-			Participants
-		  </th>
+      <th style="text-align: left;">
+      Event
+      </th>
+      <th style="text-align: left;">
+      Participants
+      </th>
 {/if}
-		  <th style="text-align: left;">
-			Price
-		  </th>
-		  <th style="text-align: left;">
-			Total
-		  </th>
-		</tr>
-	  </thead>
+      <th style="text-align: left;">
+      Price
+      </th>
+      <th style="text-align: left;">
+      Total
+      </th>
+    </tr>
+    </thead>
       <tbody>
-	{foreach from=$line_items item=line_item}
-	<tr>
-	  <td style="width: 220px">
-	    {$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})<br />
-	    {if $line_item.event->is_show_location}
-	      {if $line_item.location.address.1.name}
-		{$line_item.location.address.1.name}<br />
-	      {/if}
-	      {if $line_item.location.address.1.street_address}
-		{$line_item.location.address.1.street_address}<br />
-	      {/if}
-	      {if $line_item.location.address.1.supplemental_address_1}
-		{$line_item.location.address.1.supplemental_address_1}<br />
-	      {/if}
-	      {if $line_item.location.address.1.supplemental_address_2}
-		{$line_item.location.address.1.supplemental_address_2}<br />
-	      {/if}
-	      {if $line_item.location.address.1.city}
-		{$line_item.location.address.1.city}, {$line_item.location.address.1.state_province} {$location.address.1.postal_code}
-	      {/if}
-	    {/if}{*End of isShowLocation condition*}<br /><br />
-	    {$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
-	  </td>
-	  <td style="width: 180px">
-		{$line_item.num_participants}
-	    {if $line_item.num_participants > 0}
-	    <div class="participants" style="padding-left: 10px;">
-	      {foreach from=$line_item.participants item=participant}
-	      {$participant.display_name}<br />
-	      {/foreach}
-	    </div>
-	    {/if}
-	    {if $line_item.num_waiting_participants > 0}
-	    Waitlisted:<br/>
-	    <div class="participants" style="padding-left: 10px;">
-	      {foreach from=$line_item.waiting_participants item=participant}
-	      {$participant.display_name}<br />
-	      {/foreach}
-	    </div>
-	    {/if}
-	  </td>
-	  <td style="width: 100px">
-	    {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
-	  </td>
-	  <td style="width: 100px">
-	    &nbsp;{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
-	  </td>
-	</tr>
-	{/foreach}
+  {foreach from=$line_items item=line_item}
+  <tr>
+    <td style="width: 220px">
+      {$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})<br />
+      {if $line_item.event->is_show_location}
+        {if $line_item.location.address.1.name}
+    {$line_item.location.address.1.name}<br />
+        {/if}
+        {if $line_item.location.address.1.street_address}
+    {$line_item.location.address.1.street_address}<br />
+        {/if}
+        {if $line_item.location.address.1.supplemental_address_1}
+    {$line_item.location.address.1.supplemental_address_1}<br />
+        {/if}
+        {if $line_item.location.address.1.supplemental_address_2}
+    {$line_item.location.address.1.supplemental_address_2}<br />
+        {/if}
+        {if $line_item.location.address.1.city}
+    {$line_item.location.address.1.city}, {$line_item.location.address.1.state_province} {$location.address.1.postal_code}
+        {/if}
+      {/if}{*End of isShowLocation condition*}<br /><br />
+      {$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
+    </td>
+    <td style="width: 180px">
+    {$line_item.num_participants}
+      {if $line_item.num_participants > 0}
+      <div class="participants" style="padding-left: 10px;">
+        {foreach from=$line_item.participants item=participant}
+        {$participant.display_name}<br />
+        {/foreach}
+      </div>
+      {/if}
+      {if $line_item.num_waiting_participants > 0}
+      Waitlisted:<br/>
+      <div class="participants" style="padding-left: 10px;">
+        {foreach from=$line_item.waiting_participants item=participant}
+        {$participant.display_name}<br />
+        {/foreach}
+      </div>
+      {/if}
+    </td>
+    <td style="width: 100px">
+      {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
+    </td>
+    <td style="width: 100px">
+      &nbsp;{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
+    </td>
+  </tr>
+  {/foreach}
       </tbody>
       <tfoot>
-	{if $discounts}
-	<tr>
-	  <td>
-	  </td>
-	  <td>
-	  </td>
-	  <td>
-	    Subtotal:
-	  </td>
-	  <td>
-	    &nbsp;{$sub_total|crmMoney:$currency|string_format:"%10s"}
-	  </td>
-	</tr>
-	{foreach from=$discounts key=myId item=i}
-	<tr>
-	  <td>
-	    {$i.title}
-	  </td>
-	  <td>
-	  </td>
-	  <td>
-	  </td>
-	  <td>
-	    -{$i.amount}
-	  </td>
-	</tr>
-	{/foreach}
-	{/if}
-	<tr>
+  {if $discounts}
+  <tr>
+    <td>
+    </td>
+    <td>
+    </td>
+    <td>
+      Subtotal:
+    </td>
+    <td>
+      &nbsp;{$sub_total|crmMoney:$currency|string_format:"%10s"}
+    </td>
+  </tr>
+  {foreach from=$discounts key=myId item=i}
+  <tr>
+    <td>
+      {$i.title}
+    </td>
+    <td>
+    </td>
+    <td>
+    </td>
+    <td>
+      -{$i.amount}
+    </td>
+  </tr>
+  {/foreach}
+  {/if}
+  <tr>
 {if $line_items}
-	  <td>
-	  </td>
-	  <td>
-	  </td>
+    <td>
+    </td>
+    <td>
+    </td>
 {/if}
-	  <td>
-	    <strong>Total:</strong>
-	  </td>
-	  <td>
-	    <strong>&nbsp;{$total|crmMoney:$currency|string_format:"%10s"}</strong>
-	  </td>
-	</tr>
+    <td>
+      <strong>Total:</strong>
+    </td>
+    <td>
+      <strong>&nbsp;{$total|crmMoney:$currency|string_format:"%10s"}</strong>
+    </td>
+  </tr>
       </tfoot>
     </table>
 
diff --git a/xml/templates/message_templates/event_registration_receipt_text.tpl b/xml/templates/message_templates/event_registration_receipt_text.tpl
index 23e26cd32a..9620798772 100644
--- a/xml/templates/message_templates/event_registration_receipt_text.tpl
+++ b/xml/templates/message_templates/event_registration_receipt_text.tpl
@@ -9,7 +9,7 @@ Dear {contact.display_name},
   {$pay_later_receipt}
 {/if}
 
-	Your order number is #{$transaction_id}. Please print this confirmation for your records.{if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
+  Your order number is #{$transaction_id}. Please print this confirmation for your records.{if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
  Here's a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:
 
 {if $billing_name}
diff --git a/xml/templates/message_templates/membership_autorenew_billing_html.tpl b/xml/templates/message_templates/membership_autorenew_billing_html.tpl
index 9997c5ef09..a8ec69f116 100644
--- a/xml/templates/message_templates/membership_autorenew_billing_html.tpl
+++ b/xml/templates/message_templates/membership_autorenew_billing_html.tpl
@@ -58,8 +58,8 @@
          {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
         </td>
       </tr>
- 
-  </table> 
+
+  </table>
 </center>
 
 </body>
diff --git a/xml/templates/message_templates/membership_offline_receipt_html.tpl b/xml/templates/message_templates/membership_offline_receipt_html.tpl
index 280d70930d..da729d4433 100644
--- a/xml/templates/message_templates/membership_offline_receipt_html.tpl
+++ b/xml/templates/message_templates/membership_offline_receipt_html.tpl
@@ -95,13 +95,13 @@
             <tr>
              <th>{ts}Item{/ts}</th>
              <th>{ts}Fee{/ts}</th>
-	     <th>{ts}Membership Start Date{/ts}</th>
-	     <th>{ts}Membership End Date{/ts}</th>
+       <th>{ts}Membership Start Date{/ts}</th>
+       <th>{ts}Membership End Date{/ts}</th>
             </tr>
             {foreach from=$value item=line}
              <tr>
               <td>
-	      {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}	
+        {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}
               </td>
               <td>
                {$line.line_total|crmMoney}
@@ -109,7 +109,7 @@
               <td>
                {$line.start_date}
               </td>
-	      <td>
+        <td>
                {$line.end_date}
               </td>
              </tr>
diff --git a/xml/templates/message_templates/membership_offline_receipt_text.tpl b/xml/templates/message_templates/membership_offline_receipt_text.tpl
index 84e9730464..812606bdce 100644
--- a/xml/templates/message_templates/membership_offline_receipt_text.tpl
+++ b/xml/templates/message_templates/membership_offline_receipt_text.tpl
@@ -51,7 +51,7 @@
 {if $formValues.paidBy}
 {ts}Paid By{/ts}: {$formValues.paidBy}
 {if $formValues.check_number}
-{ts}Check Number{/ts}: {$formValues.check_number} 
+{ts}Check Number{/ts}: {$formValues.check_number}
 {/if}
 {/if}
 {/if}
diff --git a/xml/templates/message_templates/membership_online_receipt_html.tpl b/xml/templates/message_templates/membership_online_receipt_html.tpl
index fc46a888a9..c56152bbaa 100644
--- a/xml/templates/message_templates/membership_online_receipt_html.tpl
+++ b/xml/templates/message_templates/membership_online_receipt_html.tpl
@@ -171,8 +171,8 @@
            <tr>
             <th>{ts}Item{/ts}</th>
             <th>{ts}Fee{/ts}</th>
-	    <th>{ts}Membership Start Date{/ts}</th>
-	    <th>{ts}Membership End Date{/ts}</th>
+      <th>{ts}Membership Start Date{/ts}</th>
+      <th>{ts}Membership End Date{/ts}</th>
            </tr>
            {foreach from=$value item=line}
             <tr>
@@ -185,7 +185,7 @@
              <td>
               {$line.start_date}
              </td>
-	     <td>
+       <td>
               {$line.end_date}
              </td>
             </tr>
diff --git a/xml/templates/message_templates/participant_confirm_html.tpl b/xml/templates/message_templates/participant_confirm_html.tpl
index ba06676449..10aba0e2cd 100644
--- a/xml/templates/message_templates/participant_confirm_html.tpl
+++ b/xml/templates/message_templates/participant_confirm_html.tpl
@@ -54,20 +54,20 @@
      {if $conference_sessions}
       <tr>
        <td colspan="2" {$labelStyle}>
-	{ts}Your schedule:{/ts}
+  {ts}Your schedule:{/ts}
        </td>
       </tr>
       <tr>
        <td colspan="2" {$valueStyle}>
-	{assign var='group_by_day' value='NA'}
-	{foreach from=$conference_sessions item=session}
-	 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
-	  {assign var='group_by_day' value=$session.start_date}
+  {assign var='group_by_day' value='NA'}
+  {foreach from=$conference_sessions item=session}
+   {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
+    {assign var='group_by_day' value=$session.start_date}
           <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
-	 {/if}
-	 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
-	 {if $session.location}&nbsp;&nbsp;&nbsp;&nbsp;{$session.location}<br />{/if}
-	{/foreach}
+   {/if}
+   {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
+   {if $session.location}&nbsp;&nbsp;&nbsp;&nbsp;{$session.location}<br />{/if}
+  {/foreach}
        </td>
       </tr>
      {/if}
diff --git a/xml/templates/message_templates/petition_confirmation_needed_html.tpl b/xml/templates/message_templates/petition_confirmation_needed_html.tpl
index 5547ac0304..2d30dc11c7 100644
--- a/xml/templates/message_templates/petition_confirmation_needed_html.tpl
+++ b/xml/templates/message_templates/petition_confirmation_needed_html.tpl
@@ -1,6 +1,6 @@
 <p>Thank you for signing {$petition.title}.</p>
 
-<p>In order to <b>complete your signature</b>, we must confirm your e-mail. 
+<p>In order to <b>complete your signature</b>, we must confirm your e-mail.
 <br />
 Please do so by visiting the following web page by clicking
 on the link below or pasting the link into your browser.
diff --git a/xml/templates/message_templates/petition_confirmation_needed_text.tpl b/xml/templates/message_templates/petition_confirmation_needed_text.tpl
index 1d9c3d60d9..8549b39b4c 100644
--- a/xml/templates/message_templates/petition_confirmation_needed_text.tpl
+++ b/xml/templates/message_templates/petition_confirmation_needed_text.tpl
@@ -1,8 +1,8 @@
 Thank you for signing {$petition.title}.
 
-In order to complete your signature, we must confirm your e-mail. 
+In order to complete your signature, we must confirm your e-mail.
 Please do so by visiting the following email confirmation web page:
 
-{$petition.confirmUrlPlainText} 
+{$petition.confirmUrlPlainText}
 
 If you did not sign this petition, please ignore this message.
diff --git a/xml/templates/message_templates/test_preview_subject.tpl b/xml/templates/message_templates/test_preview_subject.tpl
index c0438bc9f9..20cc6a1050 100644
--- a/xml/templates/message_templates/test_preview_subject.tpl
+++ b/xml/templates/message_templates/test_preview_subject.tpl
@@ -1 +1 @@
-[TEST] 
+[TEST]
diff --git a/xml/templates/message_templates/test_preview_text.tpl b/xml/templates/message_templates/test_preview_text.tpl
index bf4c95f105..5821007a01 100644
--- a/xml/templates/message_templates/test_preview_text.tpl
+++ b/xml/templates/message_templates/test_preview_text.tpl
@@ -1,6 +1,6 @@
 ***********************************************************
 
-{ts}Test-drive Email / Receipt{/ts} 
+{ts}Test-drive Email / Receipt{/ts}
 
 {ts}This is a test-drive email. No live financial transaction has occurred.{/ts}
 
-- 
GitLab