fix(content): indent world datapack previews

This commit is contained in:
objz committed 2026-08-04 20:15:02 +02:00
1 parent 30a9f60830
commit fb976f1cb9
2 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -53,7 +53,10 @@ fn world_cards_preview_up_to_three_datapacks() {
.collect(),
});
assert_eq!(lines, ["1.21.1 • 4.0 MB", "• A", "• B", "• C", "+1 more"]);
assert_eq!(
lines,
["1.21.1 • 4.0 MB", " • A", " • B", " • C", " +1 more"]
);
}
#[test]
+2 -2
View File
@@ -2114,10 +2114,10 @@ fn world_descriptions(details: &WorldDetails) -> Vec<String> {
.datapacks
.iter()
.take(3)
.map(|name| format!("• {name}")),
.map(|name| format!(" • {name}")),
);
if details.datapacks.len() > 3 {
lines.push(format!("+{} more", details.datapacks.len() - 3));
lines.push(format!(" +{} more", details.datapacks.len() - 3));
}
lines
}