From dcc91445ab4f308c3e10de4afc8dbc0d2f9a6e9f Mon Sep 17 00:00:00 2001 From: salles Date: Tue, 18 Apr 2006 18:29:42 +0200 Subject: [PATCH] On accepte les couleurs ne respectant pas la casse darcs-hash:20060418162942-72cb0-73694f245c60b1208647408bf213dcf48b752161.gz --- wiki/parser/Box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/parser/Box.py b/wiki/parser/Box.py index e3772b4b..ab6d65b2 100644 --- a/wiki/parser/Box.py +++ b/wiki/parser/Box.py @@ -96,7 +96,7 @@ class Parser: for anArg in argList: anArg = anArg.strip(u' ') if anArg.find(u'color=')!=-1: - theColor = anArg.split(u'=')[1] + theColor = anArg.split(u'=')[1].lower() if theColor == 'random': theColor = self.getRandomColor() settings['color'] = theColor