Author terry.reedy
Recipients taleinat, terry.reedy
Date 2018-12-23.22:47:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545605223.62.0.0770528567349.issue35208@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2018-12-23 22:47:04terry.reedysetrecipients: + terry.reedy, taleinat
2018-12-23 22:47:03terry.reedysetmessageid: <1545605223.62.0.0770528567349.issue35208@roundup.psfhosted.org>
2018-12-23 22:47:03terry.reedylinkissue35208 messages
2018-12-23 22:47:03terry.reedycreate