chore: mass trailing whitespace and EOF fixes

This commit is contained in:
Ankush Menat
2021-08-19 13:41:10 +05:30
parent 869e36c33a
commit 4551d7d602
1190 changed files with 1352 additions and 1604 deletions

View File

@@ -1,2 +1,2 @@
<div>{{doc.terms}}</div>
<div>{{doc.terms}}</div>

View File

@@ -8,4 +8,4 @@
<p class="post-description"> {{ intro }} </p>
{% endblock %}
{% endblock %}

View File

@@ -17,4 +17,3 @@ def get_context(context):
context.doc = course
context.sidebar_title = sidebar_title
context.intro = course.course_intro

View File

@@ -6,4 +6,4 @@
padding: 10rem 0;
}
{% endif %}
/* csslint ignore:end */
/* csslint ignore:end */

View File

@@ -72,4 +72,4 @@
{{ render_homepage_section(section) }}
{% endfor %}
</main>
{% endblock %}
{% endblock %}

View File

@@ -13,4 +13,4 @@
<span class='gocardless-loading'>{{ _("Loading Payment System") }}</span>
</p>
{% endblock %}
{% endblock %}

View File

@@ -74,4 +74,4 @@ def check_mandate(data, reference_doctype, reference_docname):
except Exception as e:
frappe.log_error(e, "GoCardless Payment Error")
return {"redirect_to": '/integrations/payment-failed'}
return {"redirect_to": '/integrations/payment-failed'}

View File

@@ -13,4 +13,4 @@
<span class='gocardless-loading'>{{ _("Payment Confirmation") }}</span>
</p>
{% endblock %}
{% endblock %}

View File

@@ -86,4 +86,4 @@ def create_mandate(data):
}).insert(ignore_permissions=True)
except Exception:
frappe.log_error(frappe.get_traceback())
frappe.log_error(frappe.get_traceback())

View File

@@ -71,4 +71,4 @@
{% endfor %}
</div>
</div>
{% endblock %}
{% endblock %}

View File

@@ -19,7 +19,7 @@ def get_context(context):
if not frappe.has_website_permission(context.doc):
frappe.throw(_("Not Permitted"), frappe.PermissionError)
default_print_format = frappe.db.get_value('Property Setter', dict(property='default_print_format', doc_type=frappe.form_dict.doctype), "value")
if default_print_format:
context.print_format = default_print_format
@@ -45,5 +45,5 @@ def get_more_items_info(items, material_request):
item.delivered_qty = flt(frappe.db.sql("""select sum(transfer_qty)
from `tabStock Entry Detail` where material_request = %s
and item_code = %s and docstatus = 1""",
(material_request, item.item_code))[0][0])
return items
(material_request, item.item_code))[0][0])
return items

View File

@@ -56,4 +56,4 @@
{% endif %}
{% endblock %}
{% endblock %}

View File

@@ -39,4 +39,4 @@
});
})
</script>
{% endblock %}
{% endblock %}

View File

@@ -32,9 +32,9 @@ def get_context(context):
if not frappe.has_website_permission(context.doc):
frappe.throw(_("Not Permitted"), frappe.PermissionError)
# check for the loyalty program of the customer
customer_loyalty_program = frappe.db.get_value("Customer", context.doc.customer, "loyalty_program")
customer_loyalty_program = frappe.db.get_value("Customer", context.doc.customer, "loyalty_program")
if customer_loyalty_program:
from erpnext.accounts.doctype.loyalty_program.loyalty_program import get_loyalty_program_details_with_points
loyalty_program_details = get_loyalty_program_details_with_points(context.doc.customer, customer_loyalty_program)

View File

@@ -47,4 +47,3 @@ def get_product_list(search=None, start=0, limit=12):
set_product_info_for_website(item)
return [get_item_for_list_in_html(r) for r in data]

View File

@@ -117,4 +117,4 @@ frappe.ready(function() {
})
return false;
}
});
});

View File

@@ -147,4 +147,4 @@
});
</script>
{% endblock %}
{% endblock %}

View File

@@ -7,8 +7,8 @@ def get_context(context):
context.no_cache = 1
task = frappe.get_doc('Task', frappe.form_dict.task)
context.comments = frappe.get_all('Communication', filters={'reference_name': task.name, 'comment_type': 'comment'},
fields=['subject', 'sender_full_name', 'communication_date'])
context.doc = task
context.doc = task

View File

@@ -45,4 +45,4 @@
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View File

@@ -7,5 +7,5 @@ def get_context(context):
context.no_cache = 1
timelog = frappe.get_doc('Time Log', frappe.form_dict.timelog)
context.doc = timelog
context.doc = timelog