Compare primary with value instead of dropping it
This commit is contained in:
parent
f2023ac599
commit
df203a297f
1 changed files with 2 additions and 1 deletions
|
@ -1026,7 +1026,8 @@ impl EmitterWriter {
|
|||
children.iter()
|
||||
.map(|sub| self.get_multispan_max_line_num(&sub.span))
|
||||
.max()
|
||||
.unwrap_or(primary)
|
||||
.unwrap_or(0)
|
||||
.max(primary)
|
||||
}
|
||||
|
||||
/// Adds a left margin to every line but the first, given a padding length and the label being
|
||||
|
|
Loading…
Reference in a new issue