Skip to content

Commit

Permalink
generate-copyright: make the package name clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Jul 10, 2024
1 parent 166c74d commit 7c0ac2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/generate-copyright/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ fn render_deps<'a, 'b>(
buffer: &'b mut Vec<u8>,
license_set: &mut BTreeSet<String>,
) -> Result<(), Error> {
writeln!(buffer, "| Package | License | URL | Authors |")?;
writeln!(buffer, "|---------|---------|-----|---------|")?;
writeln!(buffer, "| Package | License | Authors |")?;
writeln!(buffer, "|---------|---------|---------|")?;
for dep in deps {
let authors_list = dep.authors.join(", ").replace("<", "\\<").replace(">", "\\>");
let url = format!("https://crates.io/crates/{}/{}", dep.name, dep.version);
writeln!(
buffer,
"| {name} {version} | {license} | <{url}> | {authors} |",
"| [{name} {version}]({url}) | {license} {authors} |",
name = dep.name,
version = dep.version,
license = dep.license,
Expand Down

0 comments on commit 7c0ac2e

Please sign in to comment.