bender icon indicating copy to clipboard operation
bender copied to clipboard

Tabs vs spaces

Open kasun-buddhi opened this issue 9 months ago • 3 comments

When I was using Bender, I was confused with using indentations. I think Bender only uses spaces as indentation. But I think placing white space (tabs or spaces) is much easier for programmers.

kasun-buddhi avatar Apr 26 '24 08:04 kasun-buddhi

I assume you mean in the generated scripts? I don't quite know how you would like to tailor to users' preferences, but feel free to propose a change in a PR.

micprog avatar Apr 26 '24 09:04 micprog

Not in the generated scripts. When I was making a bender.yml file, I faced that issue. It is not a major issue but It would be great to have white spaces instead of tabs and spaces.

kasun-buddhi avatar May 16 '24 03:05 kasun-buddhi

The Bender.yml is read using the serde_yaml package (see https://github.com/pulp-platform/bender/blob/master/src/cli.rs#L375-L387). If there is a configuration that is missing to allow your whitespaces, let me know (easiest with a PR that can be integrated), but fixing serde_yaml within bender does not make sense.

micprog avatar May 17 '24 09:05 micprog