in src/main/java/org/apache/maven/plugins/help/DescribeMojo.java [845:864]
private static void appendAsParagraph(StringBuilder sb, String key, String value, int indent)
throws MojoFailureException, MojoExecutionException {
if (value == null || value.isEmpty()) {
value = UNKNOWN;
}
String description;
if (key == null) {
description = value;
} else {
description = key + ": " + value;
}
List<String> l1 = toLines(description, indent, INDENT_SIZE, LINE_LENGTH - INDENT_SIZE);
List<String> l2 = toLines(description, indent + 1, INDENT_SIZE, LINE_LENGTH);
l2.set(0, l1.get(0));
for (String line : l2) {
sb.append(line).append(LS);
}
}