Skip to content

Commit

Permalink
don't force space after sort separator
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Aug 4, 2024
1 parent b078cc6 commit 39c8022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/csl/rendering/names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,6 @@ fn write_name<T: EntryLike>(

if name.given_name.is_some() {
ctx.push_str(sort_sep);
ctx.ensure_space();

let idx = ctx.push_format(first_format);
let cidx = ctx.push_case(first_case);
Expand All @@ -680,7 +679,6 @@ fn write_name<T: EntryLike>(

if let Some(suffix) = &name.suffix {
ctx.push_str(sort_sep);
ctx.ensure_space();
ctx.push_str(suffix);
}
};
Expand All @@ -704,7 +702,6 @@ fn write_name<T: EntryLike>(

if name.given_name.is_some() {
ctx.push_str(sort_sep);
ctx.ensure_space();

let idx = ctx.push_format(first_format);
let cidx = ctx.push_case(first_case);
Expand Down Expand Up @@ -735,7 +732,6 @@ fn write_name<T: EntryLike>(

if let Some(suffix) = &name.suffix {
ctx.push_str(sort_sep);
ctx.ensure_space();
ctx.push_str(suffix);
}
};
Expand Down
2 changes: 2 additions & 0 deletions tests/citeproc-pass.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ nameattr_NameFormOnNamesInCitation
nameattr_NameFormOnStyleInCitation
nameattr_NamesDelimiterOnBibliographyInCitation
nameattr_NamesDelimiterOnNamesInCitation
nameattr_SortSeparatorOnBibliographyInCitation
nameattr_SortSeparatorOnCitationInCitation
nameattr_SortSeparatorOnNamesInCitation
nameattr_SortSeparatorOnStyleInCitation
Expand Down Expand Up @@ -302,6 +303,7 @@ sort_DateVariableMixedElementsDescendingB
sort_LatinUnicode
sort_LocalizedDateLimitedParts
sort_TestInheritance
sortseparator_SortSeparatorEmpty
substitute_RepeatedNamesOk
substitute_SubstituteOnlyOnceString
substitute_SubstituteOnlyOnceTerm
Expand Down

0 comments on commit 39c8022

Please sign in to comment.