##// 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 math_lines += 1
63 math_lines += 1
64 if math_lines > 1:
64 if math_lines > 1:
65 within_math = False
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 # Remember the last character so we can easily watch
69 # Remember the last character so we can easily watch
67 # for backslashes
70 # for backslashes
68 last_character = char
71 last_character = char
@@ -128,7 +128,7 b' class NbconvertApp(Application):'
128 if not os.path.exists(out_root+'_files'):
128 if not os.path.exists(out_root+'_files'):
129 os.mkdir(files_dir)
129 os.mkdir(files_dir)
130 for key in keys:
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 f.write(resources['figures'][key])
132 f.write(resources['figures'][key])
133 elif self.stdout:
133 elif self.stdout:
134 print('''====================== Keys in Resources ==================================''')
134 print('''====================== Keys in Resources ==================================''')
General Comments 0
You need to be logged in to leave comments. Login now