Skip to content

Commit

Permalink
preserve line endings for optional affix file
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLRowe committed Oct 14, 2021
1 parent 0a4f944 commit 3f032a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/makeoxt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def zipnfcfile(ozip, fin, fout, affix=None) :
dat += "".join([unicodedata.normalize('NFC', x) for x in fd.readlines()])
if affix is not None :
with open(affix, encoding="utf-8") as fd:
dat += "".join([unicodedata.normalize('NFC', x.strip()) for x in fd.readlines()])
dat += "".join([unicodedata.normalize('NFC', x) for x in fd.readlines()])
zipadd(ozip, dat.replace("\uFEFF", ""), fout)

scripttypes = {
Expand Down

0 comments on commit 3f032a5

Please sign in to comment.