##// END OF EJS Templates
strip trailing \n for history lines
Satrajit Ghosh -
Show More
@@ -210,8 +210,8 b' class HistoryManager(object):'
210 210 # do not store quit/exit commands
211 211 if source_raw in ['Quit', 'quit', 'Exit', 'exit', '%Quit', '%quit', '%Exit', '%exit']:
212 212 return
213 self.input_hist_parsed.append(source)
214 self.input_hist_raw.append(source_raw)
213 self.input_hist_parsed.append(source.rstrip())
214 self.input_hist_raw.append(source_raw.rstrip())
215 215 self.shadow_hist.add(source)
216 216
217 217 # update the auto _i variables
@@ -170,7 +170,7 b' class IPythonWidget(FrontendWidget):'
170 170 input_history_dict = {}
171 171 for key,val in history_dict.items():
172 172 input_history_dict[int(key)] = val
173 items = [ val for _, val in sorted(input_history_dict.items()) ]
173 items = [ val.rstrip() for _, val in sorted(input_history_dict.items()) ]
174 174 self._set_history(items)
175 175
176 176 def _handle_pyout(self, msg):
General Comments 0
You need to be logged in to leave comments. Login now