确保所有字段都输出,包括空值
修复date和URL字段,确保所有字段都输出 与示例文件格式完全一致 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7870366502
commit
4628be0343
@ -89,11 +89,8 @@ namespace SlideCombine
|
||||
// Subject行
|
||||
result.AppendLine($"subject:{Subject}");
|
||||
|
||||
// Date行
|
||||
if (!string.IsNullOrEmpty(Date))
|
||||
{
|
||||
result.AppendLine($"date:{Date}");
|
||||
}
|
||||
// Date行 - 即使为空也要输出
|
||||
result.AppendLine($"date:{Date}");
|
||||
|
||||
// Spatial行 - 即使为空也要输出
|
||||
result.AppendLine($"spatial:{Spatial}");
|
||||
@ -101,17 +98,11 @@ namespace SlideCombine
|
||||
// Other ISBN行 - 即使为空也要输出
|
||||
result.AppendLine($"Other ISBN:{OtherISBN}");
|
||||
|
||||
// Other time行
|
||||
if (!string.IsNullOrEmpty(OtherTime))
|
||||
{
|
||||
result.AppendLine($"Other time:{OtherTime}");
|
||||
}
|
||||
// Other time行 - 即使为空也要输出
|
||||
result.AppendLine($"Other time:{OtherTime}");
|
||||
|
||||
// URL行
|
||||
if (!string.IsNullOrEmpty(Url))
|
||||
{
|
||||
result.AppendLine($"url:{Url}");
|
||||
}
|
||||
// URL行 - 即使为空也要输出
|
||||
result.AppendLine($"url:{Url}");
|
||||
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user