diff --git a/crates/typst/src/model/bibliography.rs b/crates/typst/src/model/bibliography.rs index ec44dd86b..11454804d 100644 --- a/crates/typst/src/model/bibliography.rs +++ b/crates/typst/src/model/bibliography.rs @@ -245,8 +245,6 @@ impl Show for Packed { 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 { .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()); } } diff --git a/tests/ref/bibliography-basic.png b/tests/ref/bibliography-basic.png index eeb773bfe..8ad1585ea 100644 Binary files a/tests/ref/bibliography-basic.png and b/tests/ref/bibliography-basic.png differ diff --git a/tests/ref/bibliography-before-content.png b/tests/ref/bibliography-before-content.png index 806daa089..0cfcbe79b 100644 Binary files a/tests/ref/bibliography-before-content.png and b/tests/ref/bibliography-before-content.png differ diff --git a/tests/ref/bibliography-full.png b/tests/ref/bibliography-full.png index 6d71f0e76..60c7e80df 100644 Binary files a/tests/ref/bibliography-full.png and b/tests/ref/bibliography-full.png differ diff --git a/tests/ref/bibliography-math.png b/tests/ref/bibliography-math.png index 3fc36efca..c89a2fb21 100644 Binary files a/tests/ref/bibliography-math.png and b/tests/ref/bibliography-math.png differ diff --git a/tests/ref/bibliography-multiple-files.png b/tests/ref/bibliography-multiple-files.png index 1293ba22b..ca356cce5 100644 Binary files a/tests/ref/bibliography-multiple-files.png and b/tests/ref/bibliography-multiple-files.png differ diff --git a/tests/ref/bibliography-ordering.png b/tests/ref/bibliography-ordering.png index b1e14c9ad..b1ffe2d4d 100644 Binary files a/tests/ref/bibliography-ordering.png and b/tests/ref/bibliography-ordering.png differ diff --git a/tests/ref/cite-footnote.png b/tests/ref/cite-footnote.png index 5bc6433e0..3e9333279 100644 Binary files a/tests/ref/cite-footnote.png and b/tests/ref/cite-footnote.png differ diff --git a/tests/ref/cite-form.png b/tests/ref/cite-form.png index c35a35735..c49f00c8e 100644 Binary files a/tests/ref/cite-form.png and b/tests/ref/cite-form.png differ diff --git a/tests/ref/issue-4618-bibliography-set-heading-level.png b/tests/ref/issue-4618-bibliography-set-heading-level.png index 29a4e5174..399147577 100644 Binary files a/tests/ref/issue-4618-bibliography-set-heading-level.png and b/tests/ref/issue-4618-bibliography-set-heading-level.png differ diff --git a/tests/ref/issue-622-hide-meta-cite.png b/tests/ref/issue-622-hide-meta-cite.png index 8918f668a..6c0ccf6bb 100644 Binary files a/tests/ref/issue-622-hide-meta-cite.png and b/tests/ref/issue-622-hide-meta-cite.png differ diff --git a/tests/ref/linebreak-cite-punctuation.png b/tests/ref/linebreak-cite-punctuation.png index 64d930c6d..a6b4b4eb9 100644 Binary files a/tests/ref/linebreak-cite-punctuation.png and b/tests/ref/linebreak-cite-punctuation.png differ