1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00
systemd/tools
Zbigniew Jędrzejewski-Szmek a324a8958b meson: adjust whitespace handling in jinja2 rendering
In 6abe882bae the renderer was made to
unconditionally append a newline to output. This works, but is ugly. A nicer
solution is to tell jinja2 to not strip the newline in the first place, via
keep_trailing_newline=True. It seems that the result is unchanged because all
our source files have exactly one trailing newline.

Also, enable lstrip_blocks=True. This would cause whitespace on the line before
an {%if block to be automatically stripped. It seems reasonable to enable that
if trim_blocks=True.

Overall, no change is expected, though I didn't test combinations of
configurations, so there might be a change in some cases. But now the rules of
rendering are more logical, e.g. we should be able to indent nested conditional
statements without getting unexpected whitespace in the output.
2023-02-21 06:41:19 +09:00
..
chromiumos licensing: add spdx header to chromiumos helper, move license file 2021-10-01 14:45:00 +02:00
add-git-hook.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
analyze-dump-sort.py tools/analyze-dump-sort: a helper to compare two 'systemd-analyze dump' outputs 2021-06-04 12:09:58 +02:00
catalog-report.py
check-api-docs.sh Change all fixed-path bash shebangs to /u/b/env bash outside test/ 2021-12-12 21:13:50 +01:00
check-help.sh test/check-help: check that --help and -h are identical 2022-04-05 22:18:31 +02:00
check-includes.pl
check-version.sh tests: add a smoke test for --version option in binaries 2022-04-05 22:18:31 +02:00
coverity.sh ci: simplify the Coverity script a bit 2022-08-11 10:57:25 +02:00
dbus_exporter.py tools/dbus_exporter: deblackify and shorten code a bit 2022-03-22 14:07:53 +01:00
debug-sd-boot.sh tools: replace multi-line echo by <<EOF 2023-02-06 09:19:04 +01:00
find-build-dir.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
find-double-newline.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
find-tabs.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
gdb-sd_dump_hashmaps.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
generate-gperfs.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
git-contrib.sh tools/git-contrib: list contributions not only from Weblate 2022-03-29 19:42:01 +02:00
list-discoverable-partitions.py tree-wide: BLS and DPS are now on uapi-group website 2022-11-21 12:26:35 +01:00
make-autosuspend-rules.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
make-directive-index.py man: add "DNS resource record types" section 2021-06-29 10:44:18 +02:00
make-man-index.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
meson-build.sh Fix which(1) in meson-build.sh 2022-05-23 12:52:56 +02:00
meson-make-symlink.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
meson-render-jinja2.py meson: adjust whitespace handling in jinja2 rendering 2023-02-21 06:41:19 +09:00
meson-vcs-tag.sh Report version string as in the Boot Loader Spec, fix boot loader upgrades 2022-10-25 13:23:57 +02:00
oss-fuzz.sh oss-fuzz: include generated corpora in the final zip file 2023-01-07 17:44:23 +01:00
update-dbus-docs.py man: also add anotations for methods 2021-12-24 10:18:11 +00:00
update-hwdb-autosuspend.sh test: drop whitespace after shell redirection operators 2023-02-06 09:19:04 +01:00
update-hwdb.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
update-man-rules.py meson: replace sh+find with an internal glob in the python helper 2022-03-23 11:37:35 +09:00
update-syscall-tables.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
xml_helper.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00