We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e62df commit c6143f0Copy full SHA for c6143f0
src/tags.rs
@@ -85,10 +85,14 @@ pub fn get_all(args: Args) -> Result<()> {
85
api::send_reply(&args, "No tags found")?;
86
} else {
87
let tags = &results.iter().fold(String::new(), |prev, row| {
88
- prev + &row.1 + ": " + &row.2 + "\n"
+ if prev.len() < 1980 {
89
+ prev + &row.1 + "\n"
90
+ } else {
91
+ prev
92
+ }
93
});
94
- api::send_reply(&args, &format!("\n{}", &tags))?;
95
+ api::send_reply(&args, &format!("All tags: ```\n{}```", &tags))?;
96
}
97
98
Ok(())
0 commit comments