Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions matrix/buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,13 @@ def print_date_tags(self, data, date=None, tags=None):
tags = tags or []

tags_string = ",".join(tags)

# Ensure all lines sent to weechat specifies a prefix. For lines after the
# first, we want to disable the prefix, which we do by specifying the same
# number of spaces, so it aligns correctly.
prefix, _, _ = data.partition("\t")
prefix_spaces = " " * len(W.string_remove_color(prefix, ""))
data = data.replace("\n", "\n{}\t".format(prefix_spaces))
W.prnt_date_tags(self._ptr, date, tags_string, data)

def error(self, string):
Expand Down