Fix the version and end of line issue
This commit is contained in:
@@ -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"
|
||||
@@ -188,4 +191,4 @@ public class PlantUmlServlet extends HttpServlet {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user