Skip to content

Commit

Permalink
Update makeoxt
Browse files Browse the repository at this point in the history
Removing excessive new line in .aff and .dic files
  • Loading branch information
sinaahmadi committed Oct 1, 2021
1 parent ab3403f commit cddd611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/makeoxt
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def ziphunspell(ozip, hun, name) :
def zipnfcfile(ozip, fin, fout, affix=None) :
dat = ""
with open(fin, encoding="utf-8") as fd :
dat += "\n".join([unicodedata.normalize('NFC', x) for x in fd.readlines()])
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 += "\n".join([unicodedata.normalize('NFC', x.strip()) for x in fd.readlines()])
dat += "".join([unicodedata.normalize('NFC', x.strip()) for x in fd.readlines()])
zipadd(ozip, dat.replace("\uFEFF", ""), fout)

scripttypes = {
Expand Down

0 comments on commit cddd611

Please sign in to comment.