From e9c0a184bdecc88dfc4a8aad51ff1c204a9ba669 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Thu, 27 May 2021 20:47:54 +0000 Subject: [PATCH] Show room list with preformatted text. --- src/commands/rooms.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/rooms.rs b/src/commands/rooms.rs index 2b85691..3c78c20 100644 --- a/src/commands/rooms.rs +++ b/src/commands/rooms.rs @@ -44,11 +44,11 @@ impl Command for ListRoomsCommand { .map(|room_name| (room.room_id().to_string(), room_name)), ) }) - .map_ok(|(room_id, room_name)| format!("[{}] {}", room_id, room_name)) + .map_ok(|(room_id, room_name)| format!(" {} | {}", room_id, room_name)) .try_collect() .await?; - let html = format!("{}", rooms_for_user.join("\n")); + let html = format!("
{}
", rooms_for_user.join("\n")); Execution::success(html) } }