mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
preview only first line of workload descriptions
This commit is contained in:
parent
9d1d4ce62c
commit
f544ecb72a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user