metadata中字符串类的添加时, 起始处的单\n改为双\n
This commit is contained in:
parent
c61e489ccc
commit
139fd4a554
|
|
@ -548,7 +548,7 @@ def AppendData(prodict,fieldsdict,field_id_and_content): #用添加方式修改
|
|||
if content.strip() in prodict[id][field]:
|
||||
print("题号 %s 的 %s 字段, 内容 %s 已存在"%(id,field,content))
|
||||
else:
|
||||
prodict[id][field] = (prodict[id][field].strip() + "\n" + content).strip()
|
||||
prodict[id][field] = (prodict[id][field].strip() + "\n\n" + content).strip()
|
||||
print("已于 %s 的 %s 字段执行添加, 内容为 %s"%(id,field,content))
|
||||
elif fieldType == "list":
|
||||
lines = [line.strip() for line in content.split("\n")]
|
||||
|
|
|
|||
Reference in New Issue