From 4fcbd642f31f20fff4c5f088d8d6e3894e4941e7 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 10 Nov 2013 00:29:14 +0000 Subject: [PATCH] Print timespans in a prettier way. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1135 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleTimeSpan.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OvaleTimeSpan.lua b/OvaleTimeSpan.lua index 4e78cc4..56eb448 100644 --- a/OvaleTimeSpan.lua +++ b/OvaleTimeSpan.lua @@ -27,6 +27,7 @@ Ovale.OvaleTimeSpan = OvaleTimeSpan -- --local debugprint = print local setmetatable = setmetatable +local strformat = string.format local tconcat = table.concat local wipe = table.wipe -- @@ -83,7 +84,7 @@ function OvaleTimeSpan:__tostring() if not self or #self == 0 then return "empty set" else - return tconcat(self, ", ") + return strformat("(%s)", tconcat(self, ", ")) end end -- 1.7.9.5