Skip to content
Snippets Groups Projects
Commit 0d33a2f5 authored by Pierre Riteau's avatar Pierre Riteau
Browse files

Document calculation of indentation

Change-Id: I0f107d8239ae0cbef3bb4569ec5d77326f8974fc
parent 7c0c4dd6
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,10 @@ class OverrideConfigParser(iniparser.BaseParser):
ws=self._whitespace,
value=value))
else:
# We want additional values to be written out under the
# first value with the same indentation, like this:
# key = value1
# value2
indent_size = len(key) + len(self._whitespace) * 2 + 1
ws_indent = ' ' * indent_size
fp.write('{ws_indent}{value}\n'.format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment