Skip to content

Commit

Permalink
Merge pull request #8 from jessetan/directive-file-argument
Browse files Browse the repository at this point in the history
fix: usr: Fix specifying diagram file using directive argument
  • Loading branch information
carlos-jenkins committed Jul 11, 2017
2 parents 88d17c2 + e782a94 commit 2027b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plantweb/directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def run(self):

# Load content to render
if not self.arguments:
content = self.content
content = '\n'.join(self.content)
else:
# Source file should be relative to document, or absolute to
# configuration directory.
Expand All @@ -136,7 +136,7 @@ def run(self):
# Execute plantweb call
try:
output, frmt, engine, sha = render(
'\n'.join(content),
content,
engine=self._get_engine_name()
)
except:
Expand Down

0 comments on commit 2027b05

Please sign in to comment.