mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
split description on periods or semicolons
This commit is contained in:
parent
16f4c183d5
commit
b0c30a7cc0
@ -64,7 +64,7 @@ public class WorkloadDesc implements Comparable<WorkloadDesc> {
|
|||||||
|
|
||||||
if (!description.isEmpty()) {
|
if (!description.isEmpty()) {
|
||||||
// sb.append("# description:\n");
|
// sb.append("# description:\n");
|
||||||
String formattedDesc = "# "+ description.split("\n")[0];
|
String formattedDesc = "# "+ description.split("[\n.;]")[0];
|
||||||
sb.append(formattedDesc).append("\n");
|
sb.append(formattedDesc).append("\n");
|
||||||
while (sb.toString().endsWith("\n\n")) {
|
while (sb.toString().endsWith("\n\n")) {
|
||||||
sb.setLength(sb.length() - 1);
|
sb.setLength(sb.length() - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user