From 39c802289bdc941be15bff25c3ee43a7738bd22d Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 3 Aug 2024 23:16:06 -0300 Subject: [PATCH] don't force space after sort separator --- src/csl/rendering/names.rs | 4 ---- tests/citeproc-pass.txt | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/csl/rendering/names.rs b/src/csl/rendering/names.rs index a0113f5..3c93675 100644 --- a/src/csl/rendering/names.rs +++ b/src/csl/rendering/names.rs @@ -654,7 +654,6 @@ fn write_name( 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); @@ -680,7 +679,6 @@ fn write_name( if let Some(suffix) = &name.suffix { ctx.push_str(sort_sep); - ctx.ensure_space(); ctx.push_str(suffix); } }; @@ -704,7 +702,6 @@ fn write_name( 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); @@ -735,7 +732,6 @@ fn write_name( if let Some(suffix) = &name.suffix { ctx.push_str(sort_sep); - ctx.ensure_space(); ctx.push_str(suffix); } }; diff --git a/tests/citeproc-pass.txt b/tests/citeproc-pass.txt index 0853321..fcbbe72 100644 --- a/tests/citeproc-pass.txt +++ b/tests/citeproc-pass.txt @@ -262,6 +262,7 @@ nameattr_NameFormOnNamesInCitation nameattr_NameFormOnStyleInCitation nameattr_NamesDelimiterOnBibliographyInCitation nameattr_NamesDelimiterOnNamesInCitation +nameattr_SortSeparatorOnBibliographyInCitation nameattr_SortSeparatorOnCitationInCitation nameattr_SortSeparatorOnNamesInCitation nameattr_SortSeparatorOnStyleInCitation @@ -302,6 +303,7 @@ sort_DateVariableMixedElementsDescendingB sort_LatinUnicode sort_LocalizedDateLimitedParts sort_TestInheritance +sortseparator_SortSeparatorEmpty substitute_RepeatedNamesOk substitute_SubstituteOnlyOnceString substitute_SubstituteOnlyOnceTerm