diff --git a/sukuinote/plugins/shell.py b/sukuinote/plugins/shell.py index 2f43a39..8b13aae 100644 --- a/sukuinote/plugins/shell.py +++ b/sukuinote/plugins/shell.py @@ -20,8 +20,8 @@ async def shell(client, message): stdout, stderr = await process.communicate(stdin.encode() if stdin else None) returncode = process.returncode text = f'Exit Code: {returncode}\n' - stdout = stdout.decode().replace('\r', '').strip('\n') - stderr = stderr.decode().replace('\r', '').strip('\n') + stdout = stdout.decode().replace('\r', '').lstrip('\n') + stderr = stderr.decode().replace('\r', '').lstrip('\n') if stderr: text += f'{html.escape(stderr)}\n' if stdout: