##// END OF EJS Templates
partial tex fixes
Matthias BUSSONNIER -
Show More
@@ -94,12 +94,15 b' class NbconvertApp(Application):'
94 if self.stdout :
94 if self.stdout :
95 print(output.encode('utf-8'))
95 print(output.encode('utf-8'))
96
96
97 out_root = ipynb_file[:-6].replace('.','_')
97 out_root = ipynb_file[:-6].replace('.','_').replace(' ','_')
98
98
99 keys = resources.keys()
99 keys = resources.keys()
100 if self.write :
101 with io.open(os.path.join(out_root+'.'+'ext'),'w') as f:
102 f.write(output)
100 if keys :
103 if keys :
101 if self.write and not os.path.exists(out_root):
104 if self.write and not os.path.exists(out_root+'_files'):
102 os.mkdir(out_root)
105 os.mkdir(out_root+'_files')
103 for key in keys:
106 for key in keys:
104 if self.write:
107 if self.write:
105 with io.open(os.path.join(out_root+'_files',key),'wb') as f:
108 with io.open(os.path.join(out_root+'_files',key),'wb') as f:
General Comments 0
You need to be logged in to leave comments. Login now