Skip to content

Commit 4f16044

Browse files
committed
fixup! pylightning: Added a tiny library for python plugins
1 parent 25ca49c commit 4f16044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pylightning/lightning/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import json
44
import inspect
5+
import re
56
import traceback
67

78

@@ -241,6 +242,7 @@ def _getmanifest(self):
241242
continue
242243

243244
doc = inspect.getdoc(func)
245+
doc = re.sub('\n+', ' ', doc)
244246
if not doc:
245247
self.log(
246248
'RPC method \'{}\' does not have a docstring.'.format(name)

0 commit comments

Comments
 (0)