mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Start short-indent lists on next-line
This commit is contained in:
parent
952311f101
commit
66ad1f5854
@ -77,7 +77,11 @@ class Control(object):
|
|||||||
if not short_indent:
|
if not short_indent:
|
||||||
indentation *= (len(entry) + 2)
|
indentation *= (len(entry) + 2)
|
||||||
packages_with_indention = map(lambda x: indentation + x, packages)
|
packages_with_indention = map(lambda x: indentation + x, packages)
|
||||||
control[entry] = ",\n".join(packages_with_indention).strip()
|
packages_with_indention = ",\n".join(packages_with_indention)
|
||||||
|
if short_indent:
|
||||||
|
control[entry] = "\n" + packages_with_indention
|
||||||
|
else:
|
||||||
|
control[entry] = packages_with_indention.strip()
|
||||||
else:
|
else:
|
||||||
control[entry] = ", ".join(packages).strip()
|
control[entry] = ", ".join(packages).strip()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user