fix svg build
This commit is contained in:
parent
f9a37a80c9
commit
bd1637eb88
1 changed files with 2 additions and 1 deletions
|
@ -16,8 +16,9 @@ class D2langDirective(Directive):
|
|||
srcdir = self.state.document.settings.env.srcdir
|
||||
diag_source = self.content
|
||||
with tempfile.NamedTemporaryFile() as fp:
|
||||
for line in self.content:
|
||||
for line in self.content.splitlines():
|
||||
fp.write(bytes(line,'utf-8'))
|
||||
fp.seek(0)
|
||||
cmd_line = '%s %s %s' % (d2_bin, fp.name, srcdir + "/test.svg")
|
||||
args = shlex.split(cmd_line)
|
||||
subprocess.run(args)
|
||||
|
|
Loading…
Reference in a new issue