fix: align and shorten tutorial introduction paragraphs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user