diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-16 22:52:52 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-16 22:59:48 -0500 |
commit | aa0450adda03e40874deb5085260ee28f3f46e3b (patch) | |
tree | d620193e3ee73c6491139b44584a96faa9a543ed /mesonbuild/compilers/detect.py | |
parent | 996d471f5f04202cc1d72b3f96530df835936a6f (diff) | |
download | meson-aa0450adda03e40874deb5085260ee28f3f46e3b.zip meson-aa0450adda03e40874deb5085260ee28f3f46e3b.tar.gz meson-aa0450adda03e40874deb5085260ee28f3f46e3b.tar.bz2 |
fix a couple misuses of textwrap.dedent
A backslash-escape of the last newline before a run of whitespace
leading to the indented string ending and function termination `)` does
not actually escape the entire line and make it do nothing. In fact what
it does is cause all that whitespace to be part of the preceding line,
and get printed.
Meanwhile the textwrap.dedent documentation states that lines with only
whitespace get normalized. When you *don't* mess with that final line,
dedent actually does the right thing and makes the output message end
with a single newline after the important text.
Diffstat (limited to 'mesonbuild/compilers/detect.py')
0 files changed, 0 insertions, 0 deletions