Skip to content

Commit 2e67db3

Browse files
committed
include space between author initials
1 parent 16299fc commit 2e67db3

32 files changed

Lines changed: 32 additions & 32 deletions

src/cffconvert/lib/cff_1_x_x/authors/apalike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def _from_name(self):
154154

155155
def _get_initials(self):
156156
given_names = self._author.get("given-names").split(" ")
157-
return "".join([given_name[0] + "." for given_name in given_names])
157+
return " ".join([given_name[0] + "." for given_name in given_names])
158158

159159
def as_string(self):
160160
key = self._get_key()

tests/cli/cff_1_0_3/apalike.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Spaaks J.H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert
1+
Spaaks, J. H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert

tests/cli/cff_1_1_0/apalike.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Spaaks J.H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert
1+
Spaaks J. H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert

tests/lib/cff_1_0_3/a/apalike.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Spaaks J.H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert
1+
Spaaks J. H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert

tests/lib/cff_1_0_3/a/test_apalike_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_as_string(self):
2727
assert actual_apalike == expected_apalike
2828

2929
def test_author(self):
30-
assert apalike_object().add_author().author == "Spaaks J.H. and Klaver T."
30+
assert apalike_object().add_author().author == "Spaaks J. H. and Klaver T."
3131

3232
def test_check_cffobj(self):
3333
apalike_object().check_cffobj()

tests/lib/cff_1_0_3/d/apalike.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Spaaks J.H., Klaver T., Verhoeven S., and Druskat S. (2018). cffconvert (version 1.0.1). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert
1+
Spaaks J. H., Klaver T., Verhoeven S., and Druskat S. (2018). cffconvert (version 1.0.1). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert

tests/lib/cff_1_0_3/d/test_apalike_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_as_string(self):
2727
assert actual_apalike == expected_apalike
2828

2929
def test_author(self):
30-
assert apalike_object().add_author().author == "Spaaks J.H., Klaver T., Verhoeven S., and Druskat S."
30+
assert apalike_object().add_author().author == "Spaaks J. H., Klaver T., Verhoeven S., and Druskat S."
3131

3232
def test_check_cffobj(self):
3333
apalike_object().check_cffobj()

tests/lib/cff_1_0_3/e/apalike.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Spaaks J.H., Klaver T., and Verhoeven S. (2018). cffconvert (version 0.0.4). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert
1+
Spaaks J. H., Klaver T., and Verhoeven S. (2018). cffconvert (version 0.0.4). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert

tests/lib/cff_1_0_3/e/test_apalike_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_as_string(self):
2727
assert actual_apalike == expected_apalike
2828

2929
def test_author(self):
30-
assert apalike_object().add_author().author == "Spaaks J.H., Klaver T., and Verhoeven S."
30+
assert apalike_object().add_author().author == "Spaaks J. H., Klaver T., and Verhoeven S."
3131

3232
def test_check_cffobj(self):
3333
apalike_object().check_cffobj()

tests/lib/cff_1_1_0/a/apalike.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Spaaks J.H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert
1+
Spaaks J. H. and Klaver T. (2018). cffconvert (version 1.0.0). DOI: 10.5281/zenodo.1162057 URL: https://github.com/citation-file-format/cffconvert

0 commit comments

Comments
 (0)