Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2e421be

Browse filesBrowse files
committed
Skip end-of-lines before block of zeros
1 parent ce7d782 commit 2e421be
Copy full SHA for 2e421be

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/type1font.py

Copy file name to clipboardExpand all lines: lib/matplotlib/type1font.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.