From 77ce007a681f3571b69646fee5b9529c16ab02ae 2008-07-30 21:26:35 From: Fernando Perez Date: 2008-07-30 21:26:35 Subject: [PATCH] Set prompt separators in %doctest_mode to match Python's default. --- diff --git a/IPython/Magic.py b/IPython/Magic.py index b9d20d0..74cb056 100644 --- a/IPython/Magic.py +++ b/IPython/Magic.py @@ -3283,6 +3283,7 @@ Defaulting color scheme to 'NoColor'""" save_dstore('rc_separate_out',rc.separate_out) save_dstore('rc_separate_out2',rc.separate_out2) save_dstore('rc_prompts_pad_left',rc.prompts_pad_left) + save_dstore('rc_separate_in',rc.separate_in) if mode == False: # turn on @@ -3292,6 +3293,8 @@ Defaulting color scheme to 'NoColor'""" oc.prompt2.p_template = '... ' oc.prompt_out.p_template = '' + # Prompt separators like plain python + oc.input_sep = oc.prompt1.sep = '' oc.output_sep = '' oc.output_sep2 = '' @@ -3310,6 +3313,8 @@ Defaulting color scheme to 'NoColor'""" oc.prompt2.p_template = rc.prompt_in2 oc.prompt_out.p_template = rc.prompt_out + oc.input_sep = oc.prompt1.sep = dstore.rc_separate_in + oc.output_sep = dstore.rc_separate_out oc.output_sep2 = dstore.rc_separate_out2