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