From af6e01f7c3ad6ab2cdc6116e1e34f70f9ef35c95 Mon Sep 17 00:00:00 2001 From: luto Date: Thu, 20 Nov 2014 17:54:49 +0100 Subject: [PATCH] reaper: fix subnotes --- tpls/reaper.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tpls/reaper.tpl b/tpls/reaper.tpl index 0ffa7de..2b4e26a 100644 --- a/tpls/reaper.tpl +++ b/tpls/reaper.tpl @@ -1,15 +1,15 @@ {% macro shownote(note) -%} + {%- if note.timestamp != null -%} M0,"{{note.title | replace("\"", "\"\"") | safe}};{{note.url}}; {%- for tag in note.tags %} #{{tag}} {%- endfor %}" {%- for subnote in note.shownotes -%} {{ shownote(subnote) }} {%- endfor -%} ,{{note.timestamp | htime(true)}},,, +{% endif -%} {% endmacro %} {%- for note in shownotes -%} - {%- if note.timestamp != null -%} - {{ shownote(note) }} - {%- endif -%} + {{ shownote(note) }} {%- endfor -%}