消息 [332398]
The specific bug being fixed here is that wrapped lines before newline are ignored because after
if s[pos] == '\n':
linecount += 1
current_column = 0
this block
if current_column > 0:
lines, column = divmod(current_column - 1, linewidth)
linecount += lines
current_column = column + 1
has no effect. The fix, in the PR, is to put the linecount increment in the \n block before resetting current_column. (Since the column>0 block also has no net effect after \t, I removed it) |
|
| 日期 |
用户 |
动作 |
参数 |
| 2018-12-23 22:47:04 | terry.reedy | 修改 | recipients:
+ terry.reedy, taleinat |
| 2018-12-23 22:47:03 | terry.reedy | 修改 | messageid: <1545605223.62.0.0770528567349.issue35208@roundup.psfhosted.org> |
| 2018-12-23 22:47:03 | terry.reedy | 链接 | issue35208 messages |
| 2018-12-23 22:47:03 | terry.reedy | 创建 | |
|