Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyphen adds double space #33

Open
fersarr opened this issue Jul 16, 2020 · 0 comments
Open

hyphen adds double space #33

fersarr opened this issue Jul 16, 2020 · 0 comments

Comments

@fersarr
Copy link
Contributor

fersarr commented Jul 16, 2020

Hi, I think support for negative numbers is not yet here, but the hyphens seems to be messing the string up and adding an extra space. Might be related to #29 :

>>> t2d.convert('he wanted to know what is three - negative two')
'he wanted to know what is 3   negative 2'

Note the double space!

expected:
'he wanted to know what is 3 - -2'
or without negative number support:
'he wanted to know what is 3 - negative 2'

It seems the hyphens are messing it up since it works okay-ish with '+':

>>> t2d.convert('he wanted to know what is three + negative two')
'he wanted to know what is 3 + negative 2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant