##// END OF EJS Templates
Fix indentation of the transformer regex
Blazej Michalik -
Show More
@@ -92,23 +92,23 b' classic_prompt = PromptStripper('
92 ipython_prompt = PromptStripper(
92 ipython_prompt = PromptStripper(
93 re.compile(
93 re.compile(
94 r"""
94 r"""
95 ^( # Match from the beginning of a line, either:
95 ^( # Match from the beginning of a line, either:
96
96
97 # 1. First-line prompt:
97 # 1. First-line prompt:
98 ((\[nav\]|\[ins\])?\ )? # Vi editing mode prompt, if it's there
98 ((\[nav\]|\[ins\])?\ )? # Vi editing mode prompt, if it's there
99 In\ # The 'In' of the prompt, with a space
99 In\ # The 'In' of the prompt, with a space
100 \[\d+\]: # Command index, as displayed in the prompt
100 \[\d+\]: # Command index, as displayed in the prompt
101 \ # With a mandatory trailing space
101 \ # With a mandatory trailing space
102
102
103 | # ... or ...
103 | # ... or ...
104
104
105 # 2. The three dots of the multiline prompt
105 # 2. The three dots of the multiline prompt
106 \s* # All leading whitespace characters
106 \s* # All leading whitespace characters
107 \.{3,}: # The three (or more) dots
107 \.{3,}: # The three (or more) dots
108 \ ? # With an optional trailing space
108 \ ? # With an optional trailing space
109
109
110 )
110 )
111 """,
111 """,
112 re.VERBOSE,
112 re.VERBOSE,
113 )
113 )
114 )
114 )
General Comments 0
You need to be logged in to leave comments. Login now