##// END OF EJS Templates
fix write binary and non math $...
Matthias BUSSONNIER -
Show More
@@ -63,6 +63,9 b' def remove_math_space(text):'
63 63 math_lines += 1
64 64 if math_lines > 1:
65 65 within_math = False
66 ptext = ptext+text[math_start_index:index]+"\n"
67 print 'catching up with --',text[math_start_index:index],'--'
68
66 69 # Remember the last character so we can easily watch
67 70 # for backslashes
68 71 last_character = char
@@ -128,7 +128,7 b' class NbconvertApp(Application):'
128 128 if not os.path.exists(out_root+'_files'):
129 129 os.mkdir(files_dir)
130 130 for key in keys:
131 with io.open(os.path.join(files_dir, key), 'wb') as f:
131 with io.open(os.path.join(files_dir, key), 'w') as f:
132 132 f.write(resources['figures'][key])
133 133 elif self.stdout:
134 134 print('''====================== Keys in Resources ==================================''')
General Comments 0
You need to be logged in to leave comments. Login now