Show More
@@ -76,7 +76,9 b' class ExtractFigureTransformer(ActivatableTransformer):' | |||||
76 | if out_type in ('png', 'jpg', 'pdf'): |
|
76 | if out_type in ('png', 'jpg', 'pdf'): | |
77 | data = data.decode('base64') |
|
77 | data = data.decode('base64') | |
78 | elif sys.platform in WINDOWS_PLATFORMS: |
|
78 | elif sys.platform in WINDOWS_PLATFORMS: | |
79 | data = data.replace('\n', '\r\n') |
|
79 | data = data.replace('\n', '\r\n').encode("UTF-8") | |
|
80 | else: | |||
|
81 | data = data.encode("UTF-8") | |||
80 |
|
82 | |||
81 | #Build a figure name |
|
83 | #Build a figure name | |
82 | figure_name = self.figure_filename_template.format( |
|
84 | figure_name = self.figure_filename_template.format( |
General Comments 0
You need to be logged in to leave comments.
Login now