Skip to content

Commit 15244c2

Browse files
committed
adjust comments and links
1 parent 7835a11 commit 15244c2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/csl/rendering/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,8 @@ where
834834
impl RenderCsl for citationberg::Choose {
835835
fn render<T: EntryLike>(&self, ctx: &mut Context<T>) {
836836
choose_children(self, ctx, |children, ctx| {
837+
// Propagate parent group's delimiter to 'choose' output, as
838+
// required by CSL, by not pushing a delimiter to the stack.
837839
render_with_delimiter(children, ctx);
838840
});
839841
}

tests/local/choose_UseAncestorsDelimiter.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ citation
77
Delimiters from the nearest delimiters from the nearest ancestor delimiting element (e.g., <group>)
88
are applied within the output of <choose>
99
(i.e., the output of the matching <if>, <else-if>, or <else>).
10-
https://docs.citationstyles.org/en/stable/specification.html#choose
10+
https://docs.citationstyles.org/en/v1.0.2/specification.html#choose
1111

1212
But they are not applied within the output of a delimiting element or a <text macro="…"> element.
13-
https://docs.citationstyles.org/en/stable/specification.html#delimiter
14-
https://docs.citationstyles.org/en/stable/specification.html#macro
13+
https://docs.citationstyles.org/en/v1.0.2/specification.html#delimiter
14+
https://docs.citationstyles.org/en/v1.0.2/specification.html#macro
1515

1616
https://github.com/typst/hayagriva/issues/180
1717
<<===== DESCRIPTION =====<<

0 commit comments

Comments
 (0)