mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Cosmetic fix for wrongly indented tabs with ts=4.
This commit is contained in:
parent
007b8eb7c4
commit
1bc09b7c2a
1 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (bitsleft) {
|
if (bitsleft) {
|
||||||
*out++= B64(charsleft << (6-bitsleft) );
|
*out++= B64(charsleft << (6-bitsleft) );
|
||||||
*out++ = '-';
|
*out++ = '-';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue