Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Graphviz' strict mode not supported (with fix)

0 votes
A graph can be defined as

[strict] (graph|digraph) name { statement-list }

see http://www.graphviz.org/cgi-bin/man?dot

Unfortunately PlantUML does not support the optional strict. I have created a fix (see diff below).

It would be nice if you could integrate it because with that I can fix an outstanding bug in the Confluence PlantUML plugin (https://avono-support.atlassian.net/browse/PUML-177).

Thank you,



Index: src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java
--- src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java    (revision 619)
+++ src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java    (working copy)
@@ -50,7 +50,7 @@
     public PSystemDot executeLine(PSystemDot system, String line) {
-        if (system == null && line.matches("(di)?graph\\s+\\w+\\s+\\{")) {
+        if (system == null && line.matches("(strict\\s+)?(di)?graph\\s+\\w+\\s+\\{")) {
             data = new StringBuilder(line);
             return new PSystemDot(data.toString());

asked Feb 18, 2016 in bug by cgiess (180 points)
edited Feb 18, 2016 by cgiess

1 Answer

+1 vote
Best answer

Thanks for the patch, and sorry about the delay!

This will be included in next official release (probably next week-end).

answered Feb 28, 2016 by plantuml (117,910 points)
selected Mar 8, 2016 by cgiess
Support This Project Offer 250 Mo! Follow PlantUML on Twitter