Skip to content

Commit 36aae58

Browse files
committed
MentionMisc in the OldCorefUD format should have been comma-separated, not space-separated
We still use the old format during the CorefUD 1.0 conversion. Ideally, we should rewrite all the import scripts and get rid of the intermediate old-format step.
1 parent b085e99 commit 36aae58

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

udapi/block/corefud/concatmentionmisc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ def process_tree(self,root):
1414
index = matchObj.group(2)
1515

1616
finalattr = 'MentionMisc'+index
17-
value = node.misc[attrname]
18-
17+
value = node.misc[attrname].replace(",", "%2C")
18+
1919
if finalattr not in node.misc:
2020
node.misc[finalattr] = f'{innerattrib}:{value}'
2121
else:
22-
node.misc[finalattr] += f' {innerattrib}:{value}'
22+
node.misc[finalattr] += f',{innerattrib}:{value}'
2323
del node.misc[attrname]
2424

0 commit comments

Comments
 (0)