mirror of https://github.com/scrapy/scrapy.git
Merge pull request #1951 from redapple/backport-1.1-pr1950
[backport][1.1] Place brackets on own lines with JsonItemExporter (PR #1950)
This commit is contained in:
commit
12e10e9862
|
|
@ -100,10 +100,10 @@ class JsonItemExporter(BaseItemExporter):
|
|||
self.first_item = True
|
||||
|
||||
def start_exporting(self):
|
||||
self.file.write(b"[")
|
||||
self.file.write(b"[\n")
|
||||
|
||||
def finish_exporting(self):
|
||||
self.file.write(b"]")
|
||||
self.file.write(b"\n]")
|
||||
|
||||
def export_item(self, item):
|
||||
if self.first_item:
|
||||
|
|
|
|||
Loading…
Reference in New Issue