mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-12 21:13:49 -06:00
docs: list the community tool's fields
Author, Repository and License sat on three lines of one paragraph, which renders as one line. They are a list, and a guard refuses two bold labels on consecutive lines of a paragraph.
This commit is contained in:
1 parent
7876dc09e9
commit
e871e01abf
2 files changed
+15
-3
No files matched your search
@@ -386,6 +386,18 @@ class NoClauseSemicolons(unittest.TestCase):
|
||||
]
|
||||
self.assertEqual(offenders, [], "\n".join(offenders[:20]))
|
||||
|
||||
def test_bold_labels_do_not_run_together(self):
|
||||
"""community-tools.md wrote Author, Repository and License on three
|
||||
lines of one paragraph: rendered, the three ran on one line."""
|
||||
label = r"\*\*[^*\n]+:\*\*"
|
||||
run = re.compile(rf"^{label}.*\n{label}", re.M)
|
||||
offenders = [
|
||||
f"{p.relative_to(ROOT)}: {m.group(0).splitlines()[0]}"
|
||||
for p in _tracked() if p.suffix == ".md"
|
||||
for m in run.finditer(FENCED.sub("", p.read_text(encoding="utf-8")))
|
||||
]
|
||||
self.assertEqual(offenders, [], "\n".join(offenders[:20]))
|
||||
|
||||
def test_wiki_headings_use_sentence_case(self):
|
||||
"""The gaps page and two wiki pages titled in Title Case ("What Each
|
||||
Pack Contains") beside sentence-case pages ("Quick install")."""
|
||||
|
||||
Reference in new issue
Block a user