diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-07-08 11:33:51 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-07-08 11:34:15 -0700 |
| commit | 4c0a2ed378cfdf5528cec813f1e02a42891edb2a (patch) | |
| tree | b1b9c06c0e11b15e1d2dcb98eebc31767d8c26d2 /src/comp | |
| parent | 3070439c00d1f6c105b4b9cf6ca655892ec18571 (diff) | |
| download | rust-4c0a2ed378cfdf5528cec813f1e02a42891edb2a.tar.gz rust-4c0a2ed378cfdf5528cec813f1e02a42891edb2a.zip | |
Fix newlines when outputting crate attributes with --ls
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/metadata/decoder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/metadata/decoder.rs b/src/comp/metadata/decoder.rs index 8aab0e739fc..f12c7173131 100644 --- a/src/comp/metadata/decoder.rs +++ b/src/comp/metadata/decoder.rs @@ -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"); |
