From 7de95d1187a44ccfdb1b8b6d962c689c011faf7e Mon Sep 17 00:00:00 2001 From: sb Date: Mon, 15 Aug 2016 15:39:14 -0700 Subject: [PATCH] no trailing comments when location is not used in students list, fixes #243 --- publisher/_templates/students.html.tmpl | 3 ++- publisher/_templates/students.tex.tmpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/publisher/_templates/students.html.tmpl b/publisher/_templates/students.html.tmpl index 3729590e06..d17b694454 100644 --- a/publisher/_templates/students.html.tmpl +++ b/publisher/_templates/students.html.tmpl @@ -6,7 +6,8 @@ {{for student in sponsored_students}}
  • {{html_quote(student['name']) | html}}, - {{html_quote(student['org']) | html}}, + {{html_quote(student['org']) | html}} + {{if student['location']}}, {{endif}} {{html_quote(student['location']) | html}}
  • {{endfor}} diff --git a/publisher/_templates/students.tex.tmpl b/publisher/_templates/students.tex.tmpl index ac3e7ecf34..c382232ecf 100644 --- a/publisher/_templates/students.tex.tmpl +++ b/publisher/_templates/students.tex.tmpl @@ -14,7 +14,7 @@ {{for student in sponsored_students}} \item[] \normalsize\textsc{% {{student['name']}}}, \small{% -{{student['org']}}, {{student['location']}}} +{{student['org']}}{{if student['location']}}, {{endif}}{{student['location']}}} {{endfor}} \end{itemize}