1
Fork 0

Fix multiline span start special case

This commit is contained in:
Esteban Küber 2025-02-27 22:55:24 +00:00
parent cb82b79f02
commit c75da0eda6
2 changed files with 211 additions and 227 deletions

View file

@ -763,7 +763,7 @@ impl HumanEmitter {
let mut short_start = true;
for ann in &line.annotations {
if let AnnotationType::MultilineStart(depth) = ann.annotation_type {
if source_string.chars().take(ann.start_col.display).all(|c| c.is_whitespace()) {
if source_string.chars().take(ann.start_col.file).all(|c| c.is_whitespace()) {
let uline = self.underline(ann.is_primary);
let chr = uline.multiline_whole_line;
annotations.push((depth, uline.style));