Skip to content

Commit 4c0a2ed

Browse files
committed
Fix newlines when outputting crate attributes with --ls
1 parent 3070439 commit 4c0a2ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/metadata/decoder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ fn list_meta_items(&ebml::doc meta_items, io::writer out) {
327327
}
328328

329329
fn list_crate_attributes(&ebml::doc md, io::writer out) {
330-
out.write_str("=Crate Attributes=");
330+
out.write_str("=Crate Attributes=\n");
331331

332332
for (ast::attribute attr in get_attributes(md)) {
333-
out.write_str(#fmt("%s", pprust::attribute_to_str(attr)));
333+
out.write_str(#fmt("%s\n", pprust::attribute_to_str(attr)));
334334
}
335335

336336
out.write_str("\n\n");

0 commit comments

Comments
 (0)