fix output spacing
@@ -49,7 +49,10 @@ impl Diagnostic {
None => self.write_title(buffer),
};
+ if !self.text.is_empty() {
writeln!(buffer, "{}", self.text).expect("write text");
+ }
+
if let Some(hint) = &self.hint {
writeln!(buffer, "Hint: {}", hint).expect("write hint");
}
