Skip to content

Commit

Permalink
fix:OK, no multiline, and double escape newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
rmfranken committed Dec 16, 2024
1 parent 077ad37 commit 5a16e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gimie/parsers/cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_cff_doi(data: bytes) -> Optional[str]:
Examples
--------
>>> get_cff_doi(bytes("identifiers:\n- type: doi\n value: 10.5281/zenodo.1234", encoding="utf8"))
>>> get_cff_doi(bytes("identifiers:\\n - type: doi\\n value: 10.5281/zenodo.1234", encoding="utf8"))
'https://doi.org/10.5281/zenodo.1234'
>>> get_cff_doi(bytes("abc: def", encoding="utf8"))
"""
Expand Down

0 comments on commit 5a16e3c

Please sign in to comment.