Skip to content

Commit 12e10e9

Browse files
committed
Merge pull request scrapy#1951 from redapple/backport-1.1-pr1950
[backport][1.1] Place brackets on own lines with JsonItemExporter (PR scrapy#1950)
2 parents 19b5853 + 9c29215 commit 12e10e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapy/exporters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def __init__(self, file, **kwargs):
100100
self.first_item = True
101101

102102
def start_exporting(self):
103-
self.file.write(b"[")
103+
self.file.write(b"[\n")
104104

105105
def finish_exporting(self):
106-
self.file.write(b"]")
106+
self.file.write(b"\n]")
107107

108108
def export_item(self, item):
109109
if self.first_item:

0 commit comments

Comments
 (0)