From 2ebf7bd03166249bac3aaaec76892d3cc03a6c13 Mon Sep 17 00:00:00 2001 From: Lennart Weller Date: Sun, 17 Mar 2013 00:40:22 +0100 Subject: use string templates instead --- src/web.vala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/web.vala b/src/web.vala index 2731386..ad619f4 100644 --- a/src/web.vala +++ b/src/web.vala @@ -440,9 +440,7 @@ public class WebServer { string table = ""; foreach(var e in db.get_stock()) { - table += "%s%s%d%s€%s€".printf( - e.id, e.id, e.id, e.name, e.amount, e.memberprice.to_string(), e.guestprice.to_string() - ); + table += @"$(e.id)$(e.name)$(e.amount)$(e.memberprice)€$(e.guestprice)€"; } t.replace("DATA", table); -- cgit v1.2.3