Fix newlines when outputting crate attributes with --ls

This commit is contained in:
Brian Anderson 2011-07-08 11:33:51 -07:00
parent 3070439c00
commit 4c0a2ed378

View File

@ -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) {
out.write_str("=Crate Attributes=");
out.write_str("=Crate Attributes=\n");
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");