Fix the fix :-(

This commit is contained in:
Guido van Rossum 1993-11-11 15:03:51 +00:00
parent 6938a297da
commit 71e57d090d

View File

@ -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;