mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 00:23:41 +00:00
Fix newlines when outputting crate attributes with --ls
This commit is contained in:
parent
3070439c00
commit
4c0a2ed378
@ -327,10 +327,10 @@ fn list_meta_items(&ebml::doc meta_items, io::writer out) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn list_crate_attributes(&ebml::doc md, io::writer out) {
|
fn list_crate_attributes(&ebml::doc md, io::writer out) {
|
||||||
out.write_str("=Crate Attributes=");
|
out.write_str("=Crate Attributes=\n");
|
||||||
|
|
||||||
for (ast::attribute attr in get_attributes(md)) {
|
for (ast::attribute attr in get_attributes(md)) {
|
||||||
out.write_str(#fmt("%s", pprust::attribute_to_str(attr)));
|
out.write_str(#fmt("%s\n", pprust::attribute_to_str(attr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
out.write_str("\n\n");
|
out.write_str("\n\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user