Skip to content

Commit c0ee072

Browse files
committed
2 parents 46cd340 + 12a965f commit c0ee072

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/main.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,17 @@ function getNameAndDescription(mcmeta: any): { name: string; description: string
6363
let description = descriptionToDisplayable(mcmeta.pack.description);
6464

6565
if (!name) {
66-
const splitDescription = description.split("\n");
66+
const splitDescription = description.split("<br>");
6767
name = splitDescription[0];
68-
description = splitDescription.slice(1).join("\n");
68+
description = splitDescription.slice(1).join("<br>");
6969
} else {
7070
name = sanitizeHtml(name);
7171
}
7272

7373
// strip colour codes from the name, both easier and more readable
7474
name = name.replace(/§./g, "");
7575

76-
if (!description) {
77-
description = "No description available";
78-
}
76+
if (!description) description = "";
7977

8078
return { name, description };
8179
}

0 commit comments

Comments
 (0)