Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent output to terminal for 1 file w/ N graphs. #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

step-
Copy link

@step- step- commented Oct 14, 2017

Issue: when the input file includes multiple graph {...}
GraphvizCompile outputs the first graph to file a:output but all
remaining graphs are sent to the output terminal (gibberish).

This solution: Use dot -O which ignores -o a:output and writes each
graph in a separate, numbered output file. The first graph is output to
input_file_with_ext.output_ext, and GraphvizOutputFile changes
accordingly.

TODO ?? Alter GraphvizInteractve to show the remaining graphs.

Issue: when the input file includes multiple `graph {...}`
GraphvizCompile outputs the first graph to file a:output but all
remaining graphs are sent to the output terminal (gibberish).

This solution: Use `dot -O` which ignores `-o a:output` and writes each
graph in a separate, numbered output file. The first graph is output to
input_file_with_ext.output_ext, and GraphvizOutputFile changes
accordingly.

TODO ?? Alter GraphvizInteractve to show the remaining graphs.
@step-
Copy link
Author

step- commented Oct 14, 2017

To change the code as little as possible I opted for setting shelloptions instead of changing the Compile function code block. However, a more robust change should implement option "-O" in the Compile function itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant