fix content from directive
This commit is contained in:
parent
5e5e658014
commit
3aa4cbf553
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class D2langDirective(Directive):
|
|||
srcdir = self.state.document.settings.env.srcdir
|
||||
diag_source = self.content
|
||||
with tempfile.NamedTemporaryFile() as fp:
|
||||
for line in self.content.splitlines():
|
||||
for line in self.content.data:
|
||||
fp.write(bytes(line,'utf-8'))
|
||||
fp.write(bytes('\n','utf-8'))
|
||||
fp.seek(0)
|
||||
|
|
Loading…
Reference in a new issue