summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-01-03 19:35:43 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2004-01-03 19:35:43 (GMT)
commit1bc09b7c2a111d50f4739a4f26ea5d32534d3b5d (patch)
tree9a3d41857d70f7b3d5c8d1c9769138c05e882e9d /Objects
parent007b8eb7c46b2b72b9c82c5cfedad0bdedc60a6b (diff)
downloadcpython-1bc09b7c2a111d50f4739a4f26ea5d32534d3b5d.zip
cpython-1bc09b7c2a111d50f4739a4f26ea5d32534d3b5d.tar.gz
cpython-1bc09b7c2a111d50f4739a4f26ea5d32534d3b5d.tar.bz2
Cosmetic fix for wrongly indented tabs with ts=4.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 636dfcc..a218ddb 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1004,19 +1004,19 @@ PyObject *PyUnicode_EncodeUTF7(const Py_UNICODE *s,
Py_UNICODE ch = s[i];
if (!inShift) {
- if (ch == '+') {
- *out++ = '+';
+ if (ch == '+') {
+ *out++ = '+';
*out++ = '-';
} else if (SPECIAL(ch, encodeSetO, encodeWhiteSpace)) {
charsleft = ch;
bitsleft = 16;
*out++ = '+';
- /* out, charsleft, bitsleft = */ ENCODE(out, charsleft, bitsleft);
+ /* out, charsleft, bitsleft = */ ENCODE(out, charsleft, bitsleft);
inShift = bitsleft > 0;
- } else {
- *out++ = (char) ch;
- }
- } else {
+ } else {
+ *out++ = (char) ch;
+ }
+ } else {
if (!SPECIAL(ch, encodeSetO, encodeWhiteSpace)) {
*out++ = B64(charsleft << (6-bitsleft));
charsleft = 0;
@@ -1059,7 +1059,7 @@ PyObject *PyUnicode_EncodeUTF7(const Py_UNICODE *s,
}
}
}
- }
+ }
if (bitsleft) {
*out++= B64(charsleft << (6-bitsleft) );
*out++ = '-';