Skip to content

[Enhancement] Improve compatability with Ansible Argument Spec for Descriptions #132

@schurzi

Description

@schurzi

Description

We are currently concatenating lists in descriptions with spaces and generate a single Paragraph.

description = details["description"] if "description" in details else ""
details["display_description"] = (
(
description
if isinstance(description, str)
else (" ").join(description)
)
.replace("\n", " ")
.strip()

The Specification format however states

This can be a single string or a list of strings. In case this is a list of strings, every list element is a new paragraph.

We should adapt to this.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions