Skip to content

Commit 5958725

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

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/matplotlib/dviread.py

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