Fix title parser

This commit is contained in:
WQY\qiong
2022-11-18 19:37:07 +08:00
parent f0c0577ed3
commit 4f619c649f

View File

@@ -33,9 +33,11 @@ class InpTitle:
def inp_in_title(section: list[str]) -> ChangeSet:
if section == []:
return ChangeSet()
obj = InpTitle(section)
cs = ChangeSet(g_update_prefix | {'type': 'title', 'value' : obj.value})
return cs
return ChangeSet(g_update_prefix | {'type': 'title', 'value' : obj.value})
def inp_out_title(name: str) -> list[str]: