revise indentation rules for tangled Python snippets

A pristine installation of GNU Emacs 27.1 tangles (C-c C-v t) code
blocks of Python with lines lead by spaces and tabs for the second
(and higher) level of indentation.  The same may be observed when
running Emacs e.g., with

emacs -q placeholder.org

from the CLI.  This pattern however may inhibit the subsequent
processing of test_date2name.py with Python.

By addition of a dedicated code block, the relevant parameters are
adjusted explicitly by evaluation (C-c C-c) of Emacs-lisp.
This commit is contained in:
Norwid Behrnd 2021-12-30 16:20:31 +01:00
parent 64c9599f41
commit 6424dc6c2b
2 changed files with 518 additions and 526 deletions

4
test_date2name.py Executable file → Normal file
View file

@ -4,7 +4,7 @@
# author: nbehrnd@yahoo.com
# license: GPL v3, 2021.
# date: 2021-08-30 (YYYY-MM-DD)
# edit: 2021-11-25 (YYYY-MM-DD)
# edit: 2021-12-30 (YYYY-MM-DD)
#
"""Test pad for functions by date2name with pytest.
@ -73,7 +73,7 @@ def test_create_remove_testfile(name=TFILE):
assert os.path.isfile(name) is False
@pytest.mark.elementary
@pytest.mark.elementary
def test_create_remove_testfolder(name=TFOLDER):
"""Probe the generation/removal of a test folder."""
prepare_testfolder(name=TFOLDER)

File diff suppressed because it is too large Load diff