Show room list with preformatted text.
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
projectmoon 2021-05-27 20:47:54 +00:00
parent 589d0e0dbf
commit e9c0a184bd
1 changed files with 2 additions and 2 deletions

View File

@ -44,11 +44,11 @@ impl Command for ListRoomsCommand {
.map(|room_name| (room.room_id().to_string(), room_name)), .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() .try_collect()
.await?; .await?;
let html = format!("{}", rooms_for_user.join("\n")); let html = format!("<pre>{}</pre>", rooms_for_user.join("\n"));
Execution::success(html) Execution::success(html)
} }
} }