diff options
| author | Eric Biedert <github@ericbiedert.de> | 2024-09-26 11:01:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 09:01:36 +0000 |
| commit | 59d65bbdc07f815610526d10373cc9d73e69668c (patch) | |
| tree | 89dd37c7223a1bdfa739575964b81378e0010156 /crates | |
| parent | a5b506c424d4da54984c4c4f1827ff52c0259770 (diff) | |
Fix spacing after bibliography heading (#4964)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/model/bibliography.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst/src/model/bibliography.rs b/crates/typst/src/model/bibliography.rs index ec44dd86..11454804 100644 --- a/crates/typst/src/model/bibliography.rs +++ b/crates/typst/src/model/bibliography.rs @@ -245,8 +245,6 @@ impl Show for Packed<BibliographyElem> { Packed::new(GridCell::new(reference.clone())).spanned(span), ))); } - - seq.push(row_gutter_elem.clone()); seq.push( GridElem::new(cells) .with_columns(TrackSizings(smallvec![Sizing::Auto; 2])) @@ -256,8 +254,10 @@ impl Show for Packed<BibliographyElem> { .spanned(self.span()), ); } else { - for (_, reference) in references { - seq.push(row_gutter_elem.clone()); + for (i, (_, reference)) in references.iter().enumerate() { + if i > 0 { + seq.push(row_gutter_elem.clone()); + } seq.push(reference.clone()); } } |
