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