Skip to content

Commit 1525ea6

Browse files
author
Markus Westerlind
committed
Add missing last element of the uts46 mapping table
1 parent a035e2f commit 1525ea6

File tree

2 files changed

+7619
-7615
lines changed

2 files changed

+7619
-7615
lines changed

idna/src/make_uts46_mapping_table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def merge_single_char_ranges(ranges):
143143
ret = current
144144
current = []
145145
yield ret
146+
yield current
146147

147148
optimized_ranges = list(merge_single_char_ranges(optimized_ranges))
148149

@@ -174,7 +175,7 @@ def merge_single_char_ranges(ranges):
174175
for (first, last, mapping, unicode_str) in ranges:
175176
if unicode_str is not None:
176177
mapping += rust_slice(strtab_slice(unicode_str))
177-
print("%s, " % mapping)
178+
print(" %s," % mapping)
178179

179180
print("];\n")
180181

0 commit comments

Comments
 (0)