We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 178664f commit 2e5257fCopy full SHA for 2e5257f
1 file changed
maidata/Maidata.cs
@@ -72,7 +72,9 @@ private void _putKey(string? key, StringBuilder content)
72
var value = content.ToString();
73
content.Clear();
74
if (key == null) return;
75
- if (key.StartsWith("inote") || key.StartsWith("lv") || key.StartsWith("first") || key.StartsWith("wholebpm"))
+ value = value.TrimEnd('\n'); // 字符串末尾的连续\n,说明是空白行,要去掉
76
+ if (key.StartsWith("inote") || key.StartsWith("lv") || key == "first" || key == "wholebpm" ||
77
+ key == "clock_count" || key.StartsWith("demo_") || key.StartsWith("ChartConvertTool"))
78
value = value.Trim(); // 对部分字段,要trim一下;但不能对所有的字段都trim,比如如果对title进行trim,如月车站就寄了。
79
this[key] = value;
80
}
0 commit comments