preview only first line of workload descriptions

This commit is contained in:
Jonathan Shook 2021-04-21 18:25:12 -05:00
parent 9d1d4ce62c
commit f544ecb72a

View File

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