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:
Stephen Finucane 2018-07-18 09:46:41 +01:00 committed by Matt Riedemann
parent 8c80590e8f
commit b596dc2d12
1 changed files with 1 additions and 1 deletions

View File

@ -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()