From e5fa7c35a60942598b6dd1620bb9a5820dfb5ed5 Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 11 Oct 2017 02:55:49 -0400 Subject: [PATCH] Changed tostring to better format tag output --- src/main/utils/formatter.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/utils/formatter.py b/src/main/utils/formatter.py index faa36c6..f8ed334 100644 --- a/src/main/utils/formatter.py +++ b/src/main/utils/formatter.py @@ -1,9 +1,13 @@ -def tostring(i): - o = ' ' +def tostring(i, *, random=False): + o = '' if i: for v in i: o += v + ' ' - o = o[1:-1] + o = o[:-1] + elif random is True: + o += 'order:random' + else: + o = ' ' return o def tostring_commas(i):