mirror of
https://github.com/octoleo/plantuml-server.git
synced 2025-01-03 05:00:14 +00:00
Fix the version and end of line issue
This commit is contained in:
parent
85169a1baf
commit
dac7c9f945
@ -148,7 +148,10 @@ public class PlantUmlServlet extends HttpServlet {
|
||||
StringBuilder plantUmlSource = new StringBuilder();
|
||||
plantUmlSource.append("@startuml\n");
|
||||
plantUmlSource.append(text);
|
||||
plantUmlSource.append("\n@enduml");
|
||||
if (text.endsWith("\n") == false) {
|
||||
plantUmlSource.append("\n");
|
||||
}
|
||||
plantUmlSource.append("@enduml");
|
||||
final String uml = plantUmlSource.toString();
|
||||
SourceStringReader reader = new SourceStringReader(uml);
|
||||
// Write the first image to "os"
|
||||
|
Loading…
Reference in New Issue
Block a user