fix svg extention for unamed svg file
This commit is contained in:
parent
82c2829c07
commit
1bd0989d63
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class D2langDirective(SphinxDirective):
|
|||
if 'filename' in self.options:
|
||||
output_fname = self.options.get('filename')
|
||||
else:
|
||||
output_fname = "d2lang_svg/" + str(uuid.uuid4())
|
||||
output_fname = "d2lang_svg/" + str(uuid.uuid4()) + ".svg"
|
||||
if 'layout' in self.options:
|
||||
layout = self.options.get('layout')
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue