Cleanup, fix format

This commit is contained in:
Henry 2025-12-16 19:06:37 -08:00
parent d7b9ccab3b
commit e039df4eb4
2 changed files with 8 additions and 7 deletions

View file

@ -151,13 +151,14 @@ Default
.. conf:: all_caps
:default: no
If the alphabet content of a string is all caps, do not modify. Useful
if you encounter a lot of acronyms, etc.
If the letters a-Z in a string are all caps, do not modify the string. Useful
if you encounter a lot of acronyms.
.. conf:: all_lowercase
:default: no
If the alphabet content of a string is all lowercase, do not modify. Useful
if you encounter a lot of stylized lowercase spellings, but otherwise
If the letters a-Z in a string are all lowercase, do not modify the string.
Useful if you encounter a lot of stylized lowercase spellings, but otherwise
want titlecase applied.
.. conf:: after_choice

View file

@ -140,8 +140,8 @@ class TestTitlecasePlugin(PluginTestCase):
(False, "RBMK1000", "Rbmk1000"),
(True, "P A R I S!", "P A R I S!"),
(True, "pillow dub...", "Pillow Dub..."),
(False, "P A R I S!", "P a R I S!")
]
(False, "P A R I S!", "P a R I S!"),
]
for testcase in testcases:
all_caps, given, expected = testcase
with self.configure_plugin({"all_caps": all_caps}):
@ -153,7 +153,7 @@ class TestTitlecasePlugin(PluginTestCase):
(True, "RBMK1000", "Rbmk1000"),
(True, "pillow dub...", "pillow dub..."),
(False, "pillow dub...", "Pillow Dub..."),
]
]
for testcase in testcases:
all_lowercase, given, expected = testcase
with self.configure_plugin({"all_lowercase": all_lowercase}):