← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 terry.reedy
收信人 taleinat, terry.reedy
日期 2018-12-23.22:47:03
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1545605223.62.0.0770528567349.issue35208@roundup.psfhosted.org>
In-reply-to
内容
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:04terry.reedy修改recipients: + terry.reedy, taleinat
2018-12-23 22:47:03terry.reedy修改messageid: <1545605223.62.0.0770528567349.issue35208@roundup.psfhosted.org>
2018-12-23 22:47:03terry.reedy链接issue35208 messages
2018-12-23 22:47:03terry.reedy创建