Skip to content

Commit

Permalink
Fixed ellipsis bug, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
zesterer committed Feb 26, 2022
1 parent c5f220d commit bcbd515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ariadne"
version = "0.1.4"
version = "0.1.5"
description = "A fancy diagnostics & reporting crate"
authors = ["Joshua Barretto <[email protected]>"]
license = "MIT"
Expand Down
5 changes: 3 additions & 2 deletions src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<S: Span> Report<S> {
},
};

let mut line_range = src.get_line_range(&span);
let line_range = src.get_line_range(&span);

// File name & reference
let location = if src_id == self.location.0.borrow() {
Expand Down Expand Up @@ -394,10 +394,11 @@ impl<S: Span> Report<S> {
if !is_ellipsis && within_label {
is_ellipsis = true;
} else {
if !self.config.compact {
if !self.config.compact && !is_ellipsis {
write_margin(&mut w, idx, false, is_ellipsis, false, None, &[], &None)?;
write!(w, "\n")?;
}
is_ellipsis = true;
continue;
}
} else {
Expand Down

0 comments on commit bcbd515

Please sign in to comment.