fix subtitle newlines in ass
This commit is contained in:
parent
f8cbbd55c7
commit
3edc89d305
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour,
|
|||
stop = ass_timestamp(sub["out"])
|
||||
for lang in reversed(langs):
|
||||
value = sub["values"][lang]
|
||||
value = value.replace('\n', '\\N')
|
||||
event = f"Dialogue: 0,{start},{stop},{lang},,0,0,0,,{value}"
|
||||
events.append(event)
|
||||
ass += "\n\n[Events]\n" + "\n".join(events) + "\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue