1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-22 04:55:10 +00:00

dot: be less restrictive in digraph header

The space between the digraph title and the following brace is not required by
"dot".
This commit is contained in:
Thomas Weißschuh 2020-05-05 13:48:56 +02:00
parent 138cfb900a
commit ec246f16a0

View File

@ -53,7 +53,7 @@ public class PSystemDotFactory extends PSystemBasicFactory<PSystemDot> {
@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());