From: Guido van Rossum Date: Thu, 11 Nov 1993 15:03:51 +0000 (+0000) Subject: Fix the fix :-( X-Git-Tag: v1.0.1~143 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71e57d090d070686746ee63b855e38cb337dc5cc;p=thirdparty%2FPython%2Fcpython.git Fix the fix :-( --- diff --git a/Objects/stringobject.c b/Objects/stringobject.c index d40b90814ba3..ed5af5775f0a 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -818,6 +818,8 @@ formatstring(format, args) res = getstringvalue(result) + reslen - rescnt; } if (sign) { + if (fill != ' ') + *res++ = sign; rescnt--; if (width > len) width--; @@ -828,7 +830,7 @@ formatstring(format, args) *res++ = fill; } while (--width > len); } - if (sign) + if (sign && fill == ' ') *res++ = sign; memcpy(res, buf, len); res += len;