1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From cb2f046ef7cc2dc44026a658e5a590685e122b5b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jouni=20K=2E=20Sepp=C3=A4nen?= <jks@iki.fi>
Date: Sat, 21 Jan 2017 21:50:21 +0200
Subject: Add a newline separator in fc-list call
Fixes #7906.
---
lib/matplotlib/font_manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py
index 3084410..213faee 100644
--- a/lib/matplotlib/font_manager.py
+++ b/lib/matplotlib/font_manager.py
@@ -281,7 +281,7 @@ def _call_fc_list():
'This may take a moment.'))
timer.start()
try:
- out = subprocess.check_output([str('fc-list'), '--format=%{file}'])
+ out = subprocess.check_output([str('fc-list'), '--format=%{file}\\n'])
except (OSError, subprocess.CalledProcessError):
return []
finally:
|