diff --git a/sphinx_needs/directives/list2need.py b/sphinx_needs/directives/list2need.py index ba335673c..6e3754bff 100644 --- a/sphinx_needs/directives/list2need.py +++ b/sphinx_needs/directives/list2need.py @@ -195,7 +195,7 @@ def run(self) -> Sequence[nodes.Node]: list_need["title"] = OPTION_AREA_REGEX.sub("", list_need["title"]) list_need["content"] = OPTION_AREA_REGEX.sub("", list_need["content"]) - # Add tags defined at list level (if exists) to the ones potentially defined in the content + # Add tags defined at list level (if exists) to the ones potentially defined in the content if tags is not None: if "options" not in list_need: list_need["options"] = {} diff --git a/tests/test_list2need.py b/tests/test_list2need.py index d3f8bcd07..d657325b4 100644 --- a/tests/test_list2need.py +++ b/tests/test_list2need.py @@ -11,7 +11,7 @@ def test_doc_list2need_html(test_app): app = test_app app.build() - + options_html = Path(app.outdir, "options.html").read_text() assert 'status: ' in options_html @@ -48,6 +48,3 @@ def test_doc_list2need_html(test_app): 'href="#NEED-B" title="NEED-C">NEED-B' in links_down_html ) - - -