Write sphinxext debug tempfile with linebreaks

It's much easier to debug the output if it isn't all on one line.

Change-Id: I446036aa043b74bb0f39deedd3f2cb9d08fd4dce
This commit is contained in:
Zane Bitter 2018-07-23 10:36:21 -04:00
parent ce150b1037
commit 9bbbcabf38
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ class ShowOptionsDirective(rst.Directive):
for part in parts:
result.append(line, source_name, count + offset)
tmp.write(line.encode('utf-8'))
tmp.write(line.encode('utf-8') + b'\n')
node = nodes.section()
node.document = self.state.document