8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fd8b5b commit 0229348Copy full SHA for 0229348
lib/matplotlib/dviread.py
@@ -1025,14 +1025,14 @@ def find_tex_file(filename, format=None):
1025
if format is not None:
1026
cmd += ['--format=' + format]
1027
cmd += [filename]
1028
- try: # Below: strip final newline.
1029
- result = cbook._check_and_log_subprocess(cmd, _log, **kwargs)[:-1]
+ try:
+ result = cbook._check_and_log_subprocess(cmd, _log, **kwargs)
1030
except RuntimeError:
1031
return ''
1032
if os.name == 'nt':
1033
- return result.decode('utf-8')
+ return result.decode('utf-8').rstrip('\r\n')
1034
else:
1035
- return os.fsdecode(result)
+ return os.fsdecode(result).rstrip('\n')
1036
1037
1038
@lru_cache()
0 commit comments