Kaydet (Commit) 1bc09b7c authored tarafından Hye-Shik Chang's avatar Hye-Shik Chang

Cosmetic fix for wrongly indented tabs with ts=4.

üst 007b8eb7
...@@ -1004,19 +1004,19 @@ PyObject *PyUnicode_EncodeUTF7(const Py_UNICODE *s, ...@@ -1004,19 +1004,19 @@ PyObject *PyUnicode_EncodeUTF7(const Py_UNICODE *s,
Py_UNICODE ch = s[i]; Py_UNICODE ch = s[i];
if (!inShift) { if (!inShift) {
if (ch == '+') { if (ch == '+') {
*out++ = '+'; *out++ = '+';
*out++ = '-'; *out++ = '-';
} else if (SPECIAL(ch, encodeSetO, encodeWhiteSpace)) { } else if (SPECIAL(ch, encodeSetO, encodeWhiteSpace)) {
charsleft = ch; charsleft = ch;
bitsleft = 16; bitsleft = 16;
*out++ = '+'; *out++ = '+';
/* out, charsleft, bitsleft = */ ENCODE(out, charsleft, bitsleft); /* out, charsleft, bitsleft = */ ENCODE(out, charsleft, bitsleft);
inShift = bitsleft > 0; inShift = bitsleft > 0;
} else { } else {
*out++ = (char) ch; *out++ = (char) ch;
} }
} else { } else {
if (!SPECIAL(ch, encodeSetO, encodeWhiteSpace)) { if (!SPECIAL(ch, encodeSetO, encodeWhiteSpace)) {
*out++ = B64(charsleft << (6-bitsleft)); *out++ = B64(charsleft << (6-bitsleft));
charsleft = 0; charsleft = 0;
...@@ -1059,7 +1059,7 @@ PyObject *PyUnicode_EncodeUTF7(const Py_UNICODE *s, ...@@ -1059,7 +1059,7 @@ PyObject *PyUnicode_EncodeUTF7(const Py_UNICODE *s,
} }
} }
} }
} }
if (bitsleft) { if (bitsleft) {
*out++= B64(charsleft << (6-bitsleft) ); *out++= B64(charsleft << (6-bitsleft) );
*out++ = '-'; *out++ = '-';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment