use single-line codeblock for specific features lists

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-28 01:57:33 +00:00 committed by Jason Volk
parent e6884ef13a
commit 95121b6e05

View file

@ -35,13 +35,13 @@ pub(super) async fn list_features(
};
if enabled && !available {
let features = info::rustc::features().join(delim);
let out = format!("```\n{features}\n```");
let out = format!("`\n{features}\n`");
return Ok(RoomMessageEventContent::text_markdown(out));
}
if available && !enabled {
let features = info::cargo::features().join(delim);
let out = format!("```\n{features}\n```");
let out = format!("`\n{features}\n`");
return Ok(RoomMessageEventContent::text_markdown(out));
}