diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 78861e6..8c9d358 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3811,7 +3811,8 @@ def unwrap_attachments(message_json, text_before): if t == [] and fallback and not link_shown: t.append(fallback) if t: - attachment_texts.append("\n".join([x.strip() for x in t if x])) + lines = [line for part in t for line in part.strip().split("\n") if part] + attachment_texts.extend("| {}".format(line) for line in lines) return "\n".join(attachment_texts) |