fix template formatting

This commit is contained in:
2022-02-23 18:38:23 +01:00
parent fc14f281c7
commit 428f8b4812
2 changed files with 14 additions and 10 deletions

View File

@@ -45,17 +45,21 @@ post_tops:
Wo: {{place}} \linebreak Wo: {{place}} \linebreak
Redeleitung: ? \linebreak Redeleitung: ? \linebreak
Protokoll: ?' Protokoll: ?'
protostub: '* Termin: {{next_date.strftime("%d.%m.%Y")}} protostub: '{{"{{"}}NextFsr
* Ort: {{place}} | termin = {{next_date.strftime("%d.%m.%Y")}} {{time.strftime("%H:%M")}}
* nächste Redeleitung: XXXXXXXX | ort = {{place}}
* nächstes Protokoll: XXXXXXXX' | redeleitung = XXXXXXXX
| protokoll = XXXXXXXX
{{"}}"}}'
- title: Termine - title: Termine
file: "data/termine.txt" file: "data/termine.txt"
#command: "./list_termine.sh" # if khal is setup correctly, uncomment this to read events from there command: "./list_termine.sh" # if khal is setup correctly, uncomment this to read events from there
#proto_command: "./list_termine_proto.sh" proto_command: "./list_termine_proto.sh"
protostub: '{| protostub: '{|
{{"{{"}}Termin|was=AAAAAAAAAA|wann=XX.YY.{{"}}"}} {{"{{"}}Termin|was=AAAAAAAAAA|wann=XX.YY.{{"}}"}}
@@ -84,7 +88,7 @@ protoreplace:
Beschlussvorlage" Beschlussvorlage"
sendmail: ["/usr/sbin/sendmail"] sendmail: ["/usr/bin/msmtp"]
# vim: filetype=yaml # vim: filetype=yaml

View File

@@ -1,4 +1,4 @@
#!/bin/sh -e #!/bin/sh -e
echo "{{'{{'}}" echo "{{'{|'}}"
khal list --day-format "" --format "{{{{'{{{{'}}}}Termin|was={title}|wann={start}{{{{'}}}}'}}}}" -a calendars_fsmi today 30d | grep -v Fachschaftsrat khal list --day-format "" --format "{{{{'{{{{'}}}}Termin|was={title}|wann={start}{{{{'}}}}'}}}}" -a calendars_fsmi today 30d | grep -v Fachschaftsrat
echo "{{'}}'}}" echo "{{'|}'}}"