summaryrefslogtreecommitdiffstats
path: root/src/prs.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-06-08 19:34:05 +0200
committerCyborus <cyborus@cyborus.xyz>2024-06-08 19:34:05 +0200
commit8bd72dd59c28931d07ce83896cf291518dea13b3 (patch)
tree4dd03588ffdec11e680ac40efadc2eba23c0b12c /src/prs.rs
parentMerge pull request 'guess pr number from commit' (#74) from guess-pr into main (diff)
downloadforgejo-cli-8bd72dd59c28931d07ce83896cf291518dea13b3.tar.xz
forgejo-cli-8bd72dd59c28931d07ce83896cf291518dea13b3.zip
nicer markdown printing
Diffstat (limited to 'src/prs.rs')
-rw-r--r--src/prs.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/prs.rs b/src/prs.rs
index ec42f01..b13b451 100644
--- a/src/prs.rs
+++ b/src/prs.rs
@@ -393,7 +393,6 @@ impl PrCommand {
pub async fn view_pr(repo: &RepoName, api: &Forgejo, id: Option<u64>) -> eyre::Result<()> {
let crate::SpecialRender {
dash,
- body_prefix,
bright_red,
bright_green,
@@ -489,9 +488,7 @@ pub async fn view_pr(repo: &RepoName, api: &Forgejo, id: Option<u64>) -> eyre::R
if let Some(body) = &pr.body {
if !body.trim().is_empty() {
println!();
- for line in body.lines() {
- println!("{dark_grey}{body_prefix}{reset} {line}");
- }
+ println!("{}", crate::markdown(body));
}
}
println!();