From 08ac1319501ec4c8b17137048ad23c34ff25f982 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Sun, 8 Dec 2024 14:57:27 -0500 Subject: [PATCH] Don't add ": " when there's no name present --- pythonlib/formats/rebirth/btlsub_to_hdr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythonlib/formats/rebirth/btlsub_to_hdr.py b/pythonlib/formats/rebirth/btlsub_to_hdr.py index 5f6fe91..2ec9136 100644 --- a/pythonlib/formats/rebirth/btlsub_to_hdr.py +++ b/pythonlib/formats/rebirth/btlsub_to_hdr.py @@ -85,7 +85,10 @@ def entry_to_line_str(entry: SubEntry, index: int) -> list[str]: content.append(f" {priority},") content.append(f" {start_text},") content.append(f" {end_text},") - content.append(f' {name} ": " {text}') + if name: + content.append(f' {name} ": " {text}') + else: + content.append(f' {text}') content.append("};") return content