You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Don't add ": " when there's no name present
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user