sphinxext: Stop emitting lines multiple times
A typo resulted in us dumping the help text for opts as many times as there were lines in the group help text. Resolve this. Change-Id: I7a6506235834022fa76588e55ec60921b1ae673f Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Closes-Bug: #1782253
This commit is contained in:
parent
8c80590e8f
commit
b596dc2d12
@ -327,7 +327,7 @@ class ShowOptionsDirective(rst.Directive):
|
||||
offset += len(parts) - 1
|
||||
|
||||
for part in parts:
|
||||
result.append(line, source_name, count + offset)
|
||||
result.append(part, source_name, count + offset)
|
||||
tmp.write(line.encode('utf-8') + b'\n')
|
||||
|
||||
node = nodes.section()
|
||||
|
Loading…
x
Reference in New Issue
Block a user