Skip to content

Commit

Permalink
Improve formatting yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Feb 7, 2024
1 parent 60b89f3 commit 10f9230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/gen-universal-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
if not line:
break
headers[j - 1].append(line)
headers.append (["UnicodeData.txt does not have a header."])
headers.append(["UnicodeData.txt does not have a header."])

data = [{} for _ in files]
values = [{} for _ in files]
for i, f in enumerate (files):
for i, f in enumerate(files):
for line in f:

j = line.find ('#')
j = line.find('#')
if j >= 0:
line = line[:j]

fields = [x.strip() for x in line.split(';')]
if len(fields) == 1:
continue

uu = fields[0].split ('..')
uu = fields[0].split('..')
start = int(uu[0], 16)
if len(uu) == 1:
end = start
Expand Down

0 comments on commit 10f9230

Please sign in to comment.