1
0

Remove redundant whitespace on end of line (for an even weird edge case)
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 23s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 21s

This commit is contained in:
Jon Michael Aanes 2024-11-04 22:52:21 +01:00
parent d83f8cc7fc
commit 34988440fd
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 4 additions and 3 deletions

View File

@ -15,10 +15,11 @@ def format_message_as_citation(out: list[str], msg: Message) -> None:
out.append(f'{msg.sent_at.date()} {msg.sent_at.time()} [[{msg.sender}]]:') out.append(f'{msg.sent_at.date()} {msg.sent_at.time()} [[{msg.sender}]]:')
out.append('\n') out.append('\n')
for line in msg.text.strip().split('\n'): for line in msg.text.strip().split('\n'):
normalized = normalize_line(line)
out.append('>') out.append('>')
if line: if normalized:
out.append(' ') out.append(' ')
out.append(normalize_line(line)) out.append(normalized)
out.append('\n') out.append('\n')
del line del line
out.append('\n') out.append('\n')