From 89c334b9d0ff891f47341e095f563ae69f4943af Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Sat, 7 Oct 2023 08:57:25 +0000 Subject: [PATCH] <a: Make output nicer for source code I've made the output nicer for source code. --- plugins/lasttilde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/lasttilde.py b/plugins/lasttilde.py index 3bf1d58..8bbe9a4 100644 --- a/plugins/lasttilde.py +++ b/plugins/lasttilde.py @@ -22,7 +22,7 @@ def last_tilde(msg): if callable(data): datax = inspect.getclosurevars(data).nonlocals if len(datax) == 0: - data = inspect.getsource(data) + data = ' '.join(inspect.getsource(data).rsplit()) else: data = datax if answer is None: data = str(data)