修复EOF飘逸(去除末尾\n)以及其他修复...

This commit is contained in:
2026-02-18 00:16:59 +08:00
parent 663fe39070
commit c81da16dfb
18 changed files with 404 additions and 65 deletions

View File

@@ -60,6 +60,9 @@ namespace Fig
source += line + '\n';
lines.push_back(String(line));
}
if (!source.empty() && source.back() == U'\n')
source.pop_back();
if (lines.empty())
{
lines.push_back(String()); // 填充一个空的