fix(content): indent world datapack previews
This commit is contained in:
1 parent
30a9f60830
commit
fb976f1cb9
2 files changed
+6
-3
No files matched your search
@@ -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]
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user