Page 1 of 1

[SOLVED] How to insert a line break in sections depends on the control file

Published: May 15, 2019 - 4:20 PM
by admin-style
Hello,
I just wanted to know how to put multiple dependencies on several lines in the control file.

This is to avoid having a control file that looks something like this.
Picture

Thank you and best regards.

Re: How to insert a line break in sections depends on the control file

Published: May 20, 2019 - 5:47 PM
by admin-style
Hello,
I'm answering my own question.
Actually, you need to put a space at the beginning of each line.

Thank you for your feedback. :D

Re: How to insert a line break in sections depends on the control file

Published: May 20, 2019 - 9:58 PM
by htouvet
Indeed, if a line begins with a space, it's considered a continuation of the previous line, but with a newline character ('\n').
The question then becomes how this works... because the dependency list is obtained by splitting with a comma. The resulting dependencies therefore have names with a newline character at the end...
But since the `ensure_list` function then performs a `strip()` of each name obtained, thus removing the trailing `\n` (newline character), it works... or rather, it starts working.