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.
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:
lightning/contrib/pylightning/lightning/plugin.py
Line 245 in 0321d79
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.