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 5958725

Browse filesBrowse files
authored
Merge pull request #20304 from anntzer/ud
Don't mention dviread in the PsfontsMap "missing entry" error message.
2 parents 5275343 + 43a3d46 commit 5958725
Copy full SHA for 5958725

File tree

1 file changed

+4
-7
lines changed
Filter options

1 file changed

+4
-7
lines changed

‎lib/matplotlib/dviread.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dviread.py
+4-7Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -839,13 +839,10 @@ def __getitem__(self, texname):
839839
try:
840840
return self._parsed[texname]
841841
except KeyError:
842-
fmt = ('A PostScript file for the font whose TeX name is "{0}" '
843-
'could not be found in the file "{1}". The dviread module '
844-
'can only handle fonts that have an associated PostScript '
845-
'font file. '
846-
'This problem can often be solved by installing '
847-
'a suitable PostScript font package in your (TeX) '
848-
'package manager.')
842+
fmt = ('An associated PostScript font (required by Matplotlib) '
843+
'could not be found for TeX font {0!r} in {1!r}. This '
844+
'problem can often be solved by installing a suitable '
845+
'PostScript font package in your TeX package manager.')
849846
_log.info(textwrap.fill(
850847
fmt.format(texname.decode('ascii'), self._filename),
851848
break_on_hyphens=False, break_long_words=False))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.