Skip to content

Commit

Permalink
editor: change section name for supplementary material
Browse files Browse the repository at this point in the history
  • Loading branch information
miltondp committed Jan 1, 2023
1 parent ef89607 commit 925e6cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/manubot/ai_editor/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_section_from_filename(filename: str) -> str | None:
elif "method" in filename:
return "methods"
elif "supplementary" in filename:
return "supplementary_material"
return "supplementary material"
else:
return None

Expand Down
2 changes: 1 addition & 1 deletion tests/test_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_get_section_from_filename():
assert ManuscriptEditor.get_section_from_filename("06.acknowledgements.md") is None
assert (
ManuscriptEditor.get_section_from_filename("08.supplementary.md")
== "supplementary_material"
== "supplementary material"
)


Expand Down

0 comments on commit 925e6cd

Please sign in to comment.