From 14ab800a137003d0c2cbcfbddbc571f2424b3465 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 11 Feb 2004 06:33:05 +0000 Subject: [PATCH] Fixed bug #894619. --- src/registry.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/registry.py b/src/registry.py index 6de074cb8..38c7fc0df 100644 --- a/src/registry.py +++ b/src/registry.py @@ -368,7 +368,14 @@ class SeparatedListOf(Value): Value.setValue(self, self.List(v)) def __str__(self): - return self.joiner(self.value) + if self.value: + return self.joiner(self.value) + else: + # We must return *something* here, otherwise down along the road we + # can run into issues showing users the value if they've disabled + # nick prefixes in any of the numerous ways possible. Since the + # config parser doesn't care about this space, we'll use it :) + return ' ' class SpaceSeparatedListOfStrings(SeparatedListOf): Value = String