From 9b92c1f33c142ea8e47e2239742f2f603a7e3861 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 8 Apr 2014 22:56:42 +0300 Subject: [PATCH] Export properly formatted track statements from shoppinglist --- source/shoppinglist/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/shoppinglist/main.cpp b/source/shoppinglist/main.cpp index 4f410f1..4ebd956 100644 --- a/source/shoppinglist/main.cpp +++ b/source/shoppinglist/main.cpp @@ -65,10 +65,10 @@ int ShoppingList::main() if(j!=inventory.end()) { if(j->secondsecond) - IO::print("track %d %d;\n", i->first, i->second-j->second); + IO::print("track \\%d %d;\n", i->first, i->second-j->second); } else - IO::print("track %d %d;\n", i->first, i->second); + IO::print("track \\%d %d;\n", i->first, i->second); } IO::print("// Pre-existing:\n"); @@ -76,7 +76,7 @@ int ShoppingList::main() { map::iterator j=inventory.find(i->first); if(j!=inventory.end()) - IO::print("track %d %d;\n", i->first, min(i->second, j->second)); + IO::print("track \\%d %d;\n", i->first, min(i->second, j->second)); } IO::print("// Unused:\n"); @@ -86,10 +86,10 @@ int ShoppingList::main() if(j!=layout.end()) { if(j->secondsecond) - IO::print("track %d %d;\n", i->first, i->second-j->second); + IO::print("track \\%d %d;\n", i->first, i->second-j->second); } else - IO::print("track %d %d;\n", i->first, i->second); + IO::print("track \\%d %d;\n", i->first, i->second); } return 0; -- 2.43.0