fix: align and shorten tutorial introduction paragraphs

This commit is contained in:
DragonHD
2026-09-20 11:46:04 +08:00
parent 2e214efeb8
commit 72a3d000dd
5 changed files with 58 additions and 6 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ def main():
print(args.mode.upper() + ': original bytes and English tutorial restored; PASS')
return
mapping = json.loads(Path(__file__).with_name('tutorial_cn.json').read_text(encoding='utf-8'))
assert result == patch_display_calls(source, mapping), 'build mismatch'
assert result == patch_display_calls(source, mapping, allow_alignment_changes=True), 'build mismatch'
before = extract_display_literals(source)
after = extract_display_literals(result, encoding='gb2312')
assert len(before) == len(after) == 55