songleash

generate chansons en laisse
git clone https://a3nm.net/git/songleash/
Log | Files | Refs

commit ff34446a2147b97905519b83f2f4d759782bf219
parent dcc29f475cb3140820845ac6e8f84a00fb7d3e0f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 27 Aug 2015 21:38:40 +0200

formatting

Diffstat:
printcycle.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/printcycle.py b/printcycle.py @@ -31,8 +31,10 @@ def print_list(l): spl = w[0] spl2 = w[0] sep = '' if songmode else ',' - print ("%s%s %s%s %s%s %s%s %s" - % (spl, sep, spl, sep, spl2, sep, end, sep, end)) + prf = '' if songmode else '-' + print ("%s%s %s%s %s%s %s%s%s %s%s%s" + % (spl if songmode else spl[0].upper() + spl[1:], + sep, spl, sep, spl2, sep, prf, end, sep, prf, end, sep)) fname = sys.argv[1] f = open(fname)