Skip to content
Snippets Groups Projects
Commit c47ef383 authored by Jan Hartig's avatar Jan Hartig
Browse files

Make transcript more readable

parent 48bf7cc4
No related branches found
No related tags found
No related merge requests found
Pipeline #54983 passed
......@@ -118,15 +118,13 @@ def main(end):
lines.append(match.groups())
transcript = ""
first_line = True
previous_speaker = None
for speaker, line in lines:
if previous_speaker == speaker:
transcript += f" {line}"
else:
previous_speaker = speaker
transcript += f"{'\n' if not first_line else ''}{speaker}: {line}"
first_line = False
transcript += f"\n\n{speaker}: {line}"
msg.add_attachment(transcript, filename=filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment