From 53ec44a2d2f2a15e009f4e2809caf7ead1832551 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 2 Jun 2016 10:56:04 +0100 Subject: [PATCH] Remove commas from list of placeholders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Visually, the space between them is enough. Also the oxford comma thing didn’t actuall work :| --- app/templates/views/templates/breaking-change.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/views/templates/breaking-change.html b/app/templates/views/templates/breaking-change.html index b6bfd33b3..33ef94231 100644 --- a/app/templates/views/templates/breaking-change.html +++ b/app/templates/views/templates/breaking-change.html @@ -3,10 +3,10 @@ {% from "components/page-footer.html" import page_footer %} {% from "components/table.html" import list_table, text_field, index_field, index_field_heading %} -{% macro list_of_placeholders(placeholders, oxford_comma=False) %} +{% macro list_of_placeholders(placeholders) %} {% for placeholder in placeholders %} - {% if loop.last and loop.length > 1 %}{% if oxford_comma %},{% endif %} and {% endif %} - (({{ placeholder }})){% if not loop.last and loop.length != 2 %},{% endif %} + {% if loop.last and loop.length > 1 %} and {% endif %} + (({{ placeholder }})) {% endfor %} {% endmacro %}