diff --git a/mdlint.py b/mdlint.py index f82fdb713d5..61d7db4700b 100755 --- a/mdlint.py +++ b/mdlint.py @@ -11,11 +11,11 @@ def lint_li(fname, text): - """Ensure that the list-items are multiplies of 4""" + """Ensure that the list-items are multiplies of 2""" is_clean = True for i, line in enumerate(text.splitlines()): - if line.lstrip().startswith("*") and line.index("*") % 4 != 0: - print("%s: line %i list has non-4 spaces indent" % (fname, i)) + if line.lstrip().startswith("*") and line.index("*") % 2 != 0: + print("%s: line %i list has non-2 spaces indent" % (fname, i)) is_clean = False return is_clean diff --git a/run-checks b/run-checks index f1dc2165e01..f455671611d 100755 --- a/run-checks +++ b/run-checks @@ -136,7 +136,7 @@ if [ "$STATIC" = 1 ]; then # Run static tests. echo Checking docs - ./mdlint.py ./*.md docs/*.md + ./mdlint.py ./*.md ./**/*.md # XXX: remove once we can use an action, see workflows/test.yaml for # details why we still use this script diff --git a/tests/manual-tests.md b/tests/manual-tests.md index b267c221623..c2bc197d2d5 100644 --- a/tests/manual-tests.md +++ b/tests/manual-tests.md @@ -117,8 +117,7 @@ 7. Boot the image. -8. Print the free space of the file system, replacing *{dev}* with the device that has the - *writable* partition: +8. Print the free space of the file system, replacing *{dev}* with the device that has the *writable* partition: sudo parted -s {dev} unit % print free