Make output of info command more readable
@@ -140,8 +140,13 @@ private String readContent(String path) throws IOException {
} else if ("```".equals(line)) {
inCode = !inCode;
} else {
+ if (line.startsWith("=")) {
+ formattedText.append("\n");
+ }
formattedText.append(line);
- if (inCode || line.startsWith("* ")) {
+ if (inCode ||
+ line.matches("^\\s*\\*.*") ||
+ line.matches("^\\s*\\d+\\..*")) {
formattedText.append("\n");
} else {
formattedText.append(" ");
