Skip to content

Commit

Permalink
Fix comment code for aurweb6
Browse files Browse the repository at this point in the history
Fixes #670
  • Loading branch information
Morganamilo committed Feb 6, 2022
1 parent 48b0086 commit ea02818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ pub async fn show_comments(config: &mut Config) -> Result<i32> {

for base in &bases.bases {
let url = config.aur_url.join(&format!(
"packages/{}/comments?&PP=1000000",
"packages/{}",
base.package_base()
))?;

Expand Down Expand Up @@ -441,7 +441,7 @@ pub async fn show_comments(config: &mut Config) -> Result<i32> {

if config.sort_mode == SortMode::TopDown {
for (title, comment) in iter.into_iter() {
println!("{}", c.bold.paint(title.trim()));
print_indent(c.bold, 0, 0, config.cols, " ", title.split_whitespace());

for line in comment.trim().split('\n') {
let line = line.split_whitespace();
Expand All @@ -452,7 +452,7 @@ pub async fn show_comments(config: &mut Config) -> Result<i32> {
}
} else {
for (title, comment) in iter.into_iter().rev() {
println!("{}", c.bold.paint(title.trim()));
print_indent(c.bold, 0, 0, config.cols, " ", title.split_whitespace());

for line in comment.trim().split('\n') {
let line = line.split_whitespace();
Expand Down

0 comments on commit ea02818

Please sign in to comment.