Skip to content

python plugin lib removes line breaks from doc string for help function #2216

Description

@renepickhardt

As mentioned in #2139 the line breaks are removed from the doc string of plugin functions when the doc string is depicted as the help string. I thought this was a mistake and wanted to fix it. However looking at the code it looks desperately:

doc = re.sub('\n+', ' ', doc)

Is the rational behind this to keep the API doc clean? For the funds plugin it would be much nicer if the list with all the line breaks would stay like that list.

I opened an issue instead of a PR since this line seems very desperately put there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hx G4OLabel hx used as 'good for onboarding' but some issues may not still be true to that definition.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions