1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00

Merge pull request #350 from systarch/ignore-trailing-whitespace

ignore trailing ws when reading diagrams from pipes
This commit is contained in:
arnaudroques 2020-07-21 22:42:22 +02:00 committed by GitHub
commit 345a1eeb7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,10 +163,10 @@ public class Pipe {
break;
}
}
if (sb.length() == 0) {
String source = sb.toString().trim();
if (source.length() == 0) {
return null;
}
String source = sb.toString();
if (source.startsWith("@start") == false) {
source = "@startuml\n" + source + "\n@enduml";
}