Skip to content

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

Open
step- wants to merge 1 commit intowannesm:masterfrom
step-:step-1
Open

Prevent output to terminal for 1 file w/ N graphs.#20
step- wants to merge 1 commit intowannesm:masterfrom
step-:step-1

Conversation

@step-
Copy link
Copy Markdown

@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
Copy Markdown
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