Use backwards-compatible out format for queries

Print TODO items before appointments in query outputs and add an empty
line between the list of TODO items and the list of appointments. This
is how items were printed before the big parser refactoring.

Also, add a test to ensure we do not unintentionally change that format
in the future.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-08-06 15:48:02 +02:00
parent c2dc3109ae
commit f9208c0b3d
4 changed files with 51 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
02/22/2013 [1] Event 1
02/23/2013 [1] Event 2
02/24/2013 [1] Event 3
02/25/2013 [1] Event 4
02/22/2013 @ 10:00 -> 02/22/2013 @ 12:00 |Appointment 1
02/23/2013 @ 10:00 -> 02/23/2013 @ 12:00 |Appointment 2
02/24/2013 @ 10:00 -> 02/24/2013 @ 12:00 |Appointment 3
02/25/2013 @ 10:00 -> 02/25/2013 @ 12:00 |Appointment 4