Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e421be

Browse files
committed
Skip end-of-lines before block of zeros
1 parent ce7d782 commit 2e421be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/type1font.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _split(self, data):
123123
# zeros backward
124124
idx = data.rindex(b'cleartomark') - 1
125125
zeros = 512
126-
while zeros and data[idx] in b'0\n\r':
126+
while zeros and data[idx] in b'0' or data[idx] in b'\r\n':
127127
if data[idx] in b'0':
128128
zeros -= 1
129129
idx -= 1

0 commit comments

Comments
 (0)