Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

fix for formatting interactive shell (#6980)

Neeraj Palliyalic47b5d049acd
diff --git a/scrapy/shell.py b/scrapy/shell.py
index 311972c90..77f9ab2c1 100644
--- a/scrapy/shell.py
+++ b/scrapy/shell.py
@@ -203,7 +203,7 @@ class Shell:
b.append(" shelp() Shell help (print this help)")
b.append(" view(response) View response in a browser")
- return "\n".join(f"[s] {line}" for line in b)
+ return "\n".join(f"[s] {line}" for line in b) + "\n"
def _is_relevant(self, value: Any) -> bool:
return isinstance(value, self.relevant_classes) or is_item(value)