[elbe-devel] [PATCH 1/3] soapclient, templates, virtapt, xmldefaults: fix style errors
Olivier Dion
dion at linutronix.de
Sat Sep 28 16:15:40 CEST 2019
On 2019-09-27T22:12:37-0400, Olivier Dion <dion at linutronix.de> wrote:
> ----------------------------------------------------------------------
> >>> import textwrap
> >>> a = "\n\n\tHello\n\t\tWorld!\n\n"
> >>> textwrap.dedent(a)
> '\n\nHello\n\tWorld!\n\n'
> ---------------------------------------------------------------------
> as you can see, if indentation are not at the same level, which in
> theory chould happen with some bad editor .. VSCode .., this result
> in some indentation not being striped. Try the example above and mix
> some space and tab, there you have it.
Forget that example, I got confused. This is only true if you dedent a
text, but dedent individual lines is fine.
--
Olivier Dion Linutronix GmbH | Bahnhofstrasse 3 | D-88690
Uhldingen-Mühlhofen
More information about the elbe-devel
mailing list