mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 04:55:10 +00:00
Merge pull request #350 from systarch/ignore-trailing-whitespace
ignore trailing ws when reading diagrams from pipes
This commit is contained in:
commit
345a1eeb7c
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user