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 { 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 eeb773bf..8ad1585e 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 806daa08..0cfcbe79 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 6d71f0e7..60c7e80d 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 3fc36efc..c89a2fb2 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 1293ba22..ca356cce 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 b1e14c9a..b1ffe2d4 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 5bc6433e..3e933327 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 c35a3573..c49f00c8 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 29a4e517..39914757 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 8918f668..6c0ccf6b 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 64d930c6..a6b4b4eb 100644 Binary files a/tests/ref/linebreak-cite-punctuation.png and b/tests/ref/linebreak-cite-punctuation.png differ