From 9454f88c23a55fb982d11ada496f53f9579cf66d Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 2 Oct 2023 03:44:02 -0400 Subject: Use commas instead of newlines when building a string from a nested table --- src/random_tables.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/random_tables.rs b/src/random_tables.rs index e0512f0..f949554 100644 --- a/src/random_tables.rs +++ b/src/random_tables.rs @@ -69,7 +69,7 @@ impl RandomTables { output_text.push_str("\n"); } - return output_text.trim().to_string(); + return output_text.trim().replace("\n", ", ").to_string(); } } else { panic!("Invalid roll format in yaml") -- cgit v1.2.3