Update error format for readability. Add spacing header<->snippet and another line between errors

This commit is contained in:
Jonathan Turner 2016-05-23 12:50:34 -04:00
parent 4c6b6c200b
commit 9e5574803f
2 changed files with 8 additions and 1 deletions

View file

@ -238,7 +238,7 @@ impl EmitterWriter {
self.first = false;
} else {
if !self.old_school {
write!(self.dst, "\n")?;
write!(self.dst, "\n\n")?;
}
}
}

View file

@ -478,6 +478,13 @@ impl FileInfo {
}],
kind: RenderedLineKind::PrimaryFileName,
});
output.push(RenderedLine {
text: vec![StyledString {
text: "".to_string(),
style: Style::FileNameStyle,
}],
kind: RenderedLineKind::Annotations,
});
}
None => {
output.push(RenderedLine {