From ec246f16a0c878dd09203d6e879e29b812f1a651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Tue, 5 May 2020 13:48:56 +0200 Subject: [PATCH] dot: be less restrictive in digraph header The space between the digraph title and the following brace is not required by "dot". --- src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java b/src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java index a84cc59c6..a7fd314a1 100644 --- a/src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java +++ b/src/net/sourceforge/plantuml/directdot/PSystemDotFactory.java @@ -53,7 +53,7 @@ public class PSystemDotFactory extends PSystemBasicFactory { @Override public PSystemDot executeLine(PSystemDot system, String line) { - if (system == null && line.matches("(strict\\s+)?(di)?graph\\s+\\w+\\s+\\{")) { + if (system == null && line.matches("(strict\\s+)?(di)?graph\\s+\\w+\\s*\\{")) { data = new StringBuilder(line); data.append("\n"); return new PSystemDot(data.toString());