Skip to content

Commit

Permalink
Don't force space after sort separator (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel authored Aug 6, 2024
1 parent 78bb478 commit af287f8
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 af287f8

Please sign in to comment.