diff options
author | David Gay <eapoems@riseup.net> | 2023-10-02 03:44:02 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2023-10-02 03:44:02 -0400 |
commit | 9454f88c23a55fb982d11ada496f53f9579cf66d (patch) | |
tree | 3d88c21e2f5225ad772af98a7f8e9354e26b7e4f /src | |
parent | 958dbb4919bd51b9d34a94eab1c7cbe741a502d5 (diff) |
Use commas instead of newlines when building a string from a nested table
Diffstat (limited to 'src')
-rw-r--r-- | src/random_tables.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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") |