mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Don't know why but this fixes endless recursion
This commit is contained in:
@@ -71,7 +71,7 @@ class Num2Word_EN(num2word_EU.Num2Word_EU):
|
||||
|
||||
def merge(self, (ltext, lnum), (rtext, rnum)):
|
||||
if lnum == 1 and rnum < 100:
|
||||
return next
|
||||
return (rtext, rnum + lnum)
|
||||
elif 100 > lnum > rnum :
|
||||
return ("%s-%s"%(ltext, rtext), lnum + rnum)
|
||||
elif lnum >= 100 > rnum:
|
||||
|
||||
Reference in New Issue
Block a user