Skip to content

Commit db097c1

Browse files
authored
Merge pull request #26 from domdfcoding/rstrip
Only strip trailing whitespace from lines to preserve indentation.
2 parents 25ff470 + 6eaf854 commit db097c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx-prompt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def run(self):
103103
).strip('\r\n')
104104
)
105105
statement = []
106-
line = line[len(prompt):].strip()
106+
line = line[len(prompt):].rstrip()
107107
prompt_class = cache.get_prompt_class(prompt)
108108
break
109109

0 commit comments

Comments
 (0)