From b596dc2d12aeacc63d233e96dde5f7b12d57983d Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 18 Jul 2018 09:46:41 +0100 Subject: [PATCH] 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 Closes-Bug: #1782253 --- oslo_config/sphinxext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_config/sphinxext.py b/oslo_config/sphinxext.py index 7b2dd9f4..00269310 100644 --- a/oslo_config/sphinxext.py +++ b/oslo_config/sphinxext.py @@ -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()