8000 Skip end-of-lines before block of zeros · matplotlib/matplotlib@2e421be · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e421be

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0