Closed tanloong closed 1 year ago
Hi, IMHO textwrap.dedent
is used where the string or text is to be printed out and checked further by human.
The .desktop
file for Linux would work regardless of any extra whitespace, and this file is intended to be read by machine, not human, so there are no reason to complicate the code using textwrap
(I indent the contents of the .desktop
file within the triple-quoted strings just to comply to my coding conventions).
I'm completely OK with your decision. Thanks for the explanation.
Closing the PR.
Wordless.desktop
now looks a little bit better.https://docs.python.org/3/library/textwrap.html?highlight=textwrap#textwrap.dedent