split description on periods or semicolons

This commit is contained in:
Jonathan Shook 2021-11-04 16:36:34 -05:00
parent 16f4c183d5
commit b0c30a7cc0

View File

@ -64,7 +64,7 @@ public class WorkloadDesc implements Comparable<WorkloadDesc> {
if (!description.isEmpty()) {
// sb.append("# description:\n");
String formattedDesc = "# "+ description.split("\n")[0];
String formattedDesc = "# "+ description.split("[\n.;]")[0];
sb.append(formattedDesc).append("\n");
while (sb.toString().endsWith("\n\n")) {
sb.setLength(sb.length() - 1);